get/set ifconfig details

2007-04-10 Thread bsenthil

Is there any 'C' method API to get/ set ip address of the interface card.
Is there any 'C' method API to get ifconfig details of the interface card.
Is there any 'C' method API to set ifconfig details of the interface card.

I try to get through sysctl() ... Is there any c sample code to get 
ifconfig details 

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: get/set ifconfig details

2007-04-10 Thread Lowell Gilbert
bsenthil [EMAIL PROTECTED] writes:

 Is there any 'C' method API to get/ set ip address of the interface card.
 Is there any 'C' method API to get ifconfig details of the interface card.
 Is there any 'C' method API to set ifconfig details of the interface card.

 I try to get through sysctl() ... Is there any c sample code to get
 ifconfig details 

How about the source code for ifconfig?  [/usr/src/sbin/ifconfig]
It's not simple, because it does a lot of things, but it is the best
example of ifconfig type information.

Note that it deals with an IP interface abstraction, not with an
interface card directly.  There can be more (or less) than one address
on an interface.  You need to understand a little better what you are
actually after.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]