Find the answer to your Linux question:
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.
  1. #1
    Just 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.

  2. #2
    Linux 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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •