getting at bootp IP address
Hi,
I have a number of MVME2300 computers that boot a small ramdisk with bootp and tftp. All the MVME2300s are doing basically the same thing so I would like to avoid having a different kernel for each computer. I would like the program that is started in place of init in the ram disk to set up the network based upon the IP address that was obtained from
bootp. I do not know how to get at this information though. Can I
read it from non-vlatile ram? Can I send out another bootp braodcast from user-land and get the information again?
Thanks for any leads.
--
Ben Sapp Los Alamos National Laboratory email: <mailto:[email protected]> Phone: (505)667-3277 Fax: (505)665-7920 URL: http://www.neutrino.lanl.gov/
--
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
Quoted 3 lines · Ben Sapp
I would like the program that is started in place of init in the ram disk to set up the network based upon the IP address that was obtained from bootp.
You should be able to get the ethernet interface's IP address using the SIOCSIFADDR ioctl (and friends) on ifr_name "eth0".
Regards,
Graham
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/