Hello,

In most case of printing (ethernet) link level address, 
program does a SIOCGIFCONF ioctl, gets a ifconf structure(the whole
interface list), finds the very interface and prints the address.
What I want to is to use SIOCGIFADDR so that program finds the 
address.

My program does
1) get a socket (AF_INET)
2) make appropriate ifreq structure;
   copy interface name and set sa_family to AF_LINK
3) SIOCGIFADDR ioctl
 
But returned ifreq structure doesn't have sockaddr_dl structure.
It is impossible to get link level address using SIOCGIFADDR?

Regards,
Kyunghwan KIM

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to