In message: <[EMAIL PROTECTED]>
            bsenthil <[EMAIL PROTECTED]> writes:
: Is it possible to get/set  ifconfig entries through by programmatically. 
: If yes, please send me the code snippet ...
: 
: I am trying to get/set ipaddress by executing the command "ifconfig" .

To get the addresses, use the ifconfig-in-a-box interface
getifaddrs(3).  To set the address, you'll need to use the functions
described in networking(4), specifically the SIOCAIFADDR and
SIOCDIFADDR ioctls.

Warner
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to