Robert Watson wrote: >I tend to retrieve address information about interfaces using >getifaddrs(), which will (among other things) retrieve the link layer >addresses of an interface. It might be overkill for your application, >however. > >Robert N M Watson FreeBSD Core Team, TrustedBSD Projects >[EMAIL PROTECTED] Network Associates Laboratories > >On Tue, 18 Jun 2002, Kevin D. Wooten wrote: > > > >>How can I go about retrieving the MAC address for an interface? Since >>SIOCGHWADDR doesn't seem to be implemented. Can anyone help?? >> >>Thanks, >>Kevin Wooten >> >> >>To Unsubscribe: send mail to [EMAIL PROTECTED] >>with "unsubscribe freebsd-hackers" in the body of the message >> >> >> > > >To Unsubscribe: send mail to [EMAIL PROTECTED] >with "unsubscribe freebsd-hackers" in the body of the message > > > > Thanks getifaddrs() works great, just one more thing is there a simple way to tell the difference between "real" interfaces and virtual ones? I could obviously exclude the easy ones ( i.e. lo, lp, faith, ... ) by looking at the name, but I am not sure how many different virtual interfaces there are ( or will be ).
Thanks Again, Kevin Wooten To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message

