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.
Printable View
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.
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. ;)