Results 1 to 2 of 2
Hi everyone. I am a noob to linux programming.
I am programming a small application in C.
I need to pass around all the IPv4 and Ipv6 settings to different ...
- 08-24-2011 #1Just Joined!
- Join Date
- Apr 2006
- Posts
- 16
programming in IPv4 and IPv6 settings in linux
Hi everyone. I am a noob to linux programming.
I am programming a small application in C.
I need to pass around all the IPv4 and Ipv6 settings to different functions.
Is there a structure out there in linux land that already exists for packing up IPv4 and IPv6 settings (address, netmask, gateway, etc)?
Or do I need to define my own structure?
thanks
- 08-25-2011 #2Linux Newbie
- Join Date
- Mar 2010
- Posts
- 121
See this guide, particularly section 9.24 "struct sockaddr and pals". Also look up getaddrinfo() and inet_pton().


Reply With Quote