Subject: Re: Getting and Setting Hardware Address
To: None <netbsd-help@netbsd.org>
From: Rajnish Madan <rajnishm@delhi.tcs.co.in>
List: netbsd-help
Date: 12/21/2000 10:55:47
I cam to know today only that SIOCGIFADDR denotes the IP address of the
interface:-)

How can i get/set the hardware address of the interface through my
application.
Linux do provide SIOCGHWADDR type of request. But NetBSD doesn't seem to..

Pls suggest
Thanks
Rajnish

----- Original Message -----
From: Rajnish Madan <rajnishm@delhi.tcs.co.in>
To: <netbsd-help@netbsd.org>
Sent: Wednesday, December 20, 2000 7:54 PM
Subject: Getting and Setting Hardware Address


> Hi,
>
> I am trying to get and set the Hardware address of the interface using
> ioctl.
> I am using the request SIOCGIFADDR/ SIOCSIFADDR
>
> Using SIOCGIFADDR , errno is set to EADDRNOTAVAIL.
> Using SIOCSIFADDR , errno is set to ESRCH.
>
> what could be the reason for this.  any clues as where i am wrong.
>
> Thanks in advance
> Rajnish
>