On Sat, Jun 26, 2004 at 11:15:45AM +0200, Ivan Voras wrote:
>
> I was looking at it and came across getifaddrs(). This function does not
> depend on a open socket (yes, mine is AF_LINK, sockaddr_dl), and
> apparently returns a list of all interfaces. Is there really no other
> way than to trave
On Sat, Jun 26, 2004 at 11:15:45AM +0200, Ivan Voras wrote:
>
> I was looking at it and came across getifaddrs(). This function does not
> depend on a open socket (yes, mine is AF_LINK, sockaddr_dl), and
> apparently returns a list of all interfaces. Is there really no other
> way than to trave
Doug Rabson wrote:
Its really not that hard:
> [code]
Don't get me wrong - it's not hard, and I've done it already, it's just
that I felt there could/should be an ioctl for it :)
Onto another subject: despite the recommendations (thanks!) I wanted to
try the non-bpf,non-ng approach to things (if
On Saturday 26 June 2004 10:15, Ivan Voras wrote:
> Dmitry Morozovsky wrote:
> > On Sat, 26 Jun 2004, Ivan Voras wrote:
> >
> > IV> How to get the MAC address for an (ethernet) interface? The
> > linux code IV> does this:
> > IV> retval = ioctl(thisint->sockInt, SIOCGIFHWADDR, &ifr);
> > IV
Dmitry Morozovsky wrote:
On Sat, 26 Jun 2004, Ivan Voras wrote:
IV> How to get the MAC address for an (ethernet) interface? The linux code
IV> does this:
IV> retval = ioctl(thisint->sockInt, SIOCGIFHWADDR, &ifr);
IV>
IV> After some searching, I found SIOCSIFLLADDR ioctl, but it appears there
IV> i
On Sat, 26 Jun 2004, Ivan Voras wrote:
IV> How to get the MAC address for an (ethernet) interface? The linux code
IV> does this:
IV> retval = ioctl(thisint->sockInt, SIOCGIFHWADDR, &ifr);
IV>
IV> After some searching, I found SIOCSIFLLADDR ioctl, but it appears there
IV> isn't a "GET" counterp
How to get the MAC address for an (ethernet) interface? The linux code
does this:
retval = ioctl(thisint->sockInt, SIOCGIFHWADDR, &ifr);
After some searching, I found SIOCSIFLLADDR ioctl, but it appears there
isn't a "GET" counterpart.
(I've got interface name & index available...)
--
What par
7 matches
Mail list logo