netmask access from a c program

Vardhan, Sundara (GE Infra, Energy) sundara.vardhan@ge.com
Fri May 16 15:37:00 GMT 2008


Hi All

Is there any way to access netmask given the IP address from within c program. I have an ip address for which I need to get the netmask and broadcast addresses and also set route for them. Your help will be greatly appreciated.

With Regards

Vardhan



More information about the Gcc-help mailing list