Results 1 to 2 of 2
i want to write tool like ifconfig
can i get some info on how to regester ip address in kernel network stack?
please ur small info may help me a ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-27-2005 #1Just Joined!
- Join Date
- Jul 2005
- Location
- India
- Posts
- 1
IP
i want to write tool like ifconfig
can i get some info on how to regester ip address in kernel network stack?
please ur small info may help me a lot atleast point some header files in kernel where i can get info about this.
- 07-27-2005 #2Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
I don't know the exact interface, but I do know that it is done via ioctls on sockets (you create an AF_INET socket, and then carry out certain SIOC ioctls on it). The best place to look for the exact interface would probably be the source code for ifconfig.


Reply With Quote
