is there any API in linux through which we can set static IP address or connect to DHCP
-
Wrong forum dude! With respect to markkuk's reply. Sorry Pal. The word "linux" forced me to think so. X| Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
modified on Monday, August 11, 2008 8:37 AM
-
Wrong forum dude! With respect to markkuk's reply. Sorry Pal. The word "linux" forced me to think so. X| Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
modified on Monday, August 11, 2008 8:37 AM
-
Perhaps here - http://www.linuxforums.org/forum/linux-programming-scripting/[^] Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
Wrong forum dude! With respect to markkuk's reply. Sorry Pal. The word "linux" forced me to think so. X| Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
modified on Monday, August 11, 2008 8:37 AM
-
The IP address is set either using the
socket()
API with a RTM_NEWADDR message through a RTNETLINK socket, or with theioctl()
API and a SIOCSIFADDR command. DHCP is handled by userspace client programs that set the IP address by one of the previously mentioned APIs.