Manuel Bouyer
2010-03-24 16:55:27 UTC
Hi,
while testing agr(4) with a cisco switch, I discovered that agr
relies on SIOCSIFADDR for AF_INET doing something usefull:
ifconfig agr0 agrport epic0 agrport wm0 works, while
ifconfig agr0 agrport wm0 agrport epic0 doens't.
AFAIK only wm(4) does something with SIOCSIFADDR(AF_INET), other
drivers either relies on ether_ioctl() which silently ignores it,
or have their own copy of ether_ioctl() which does the same.
ifconfig can change the link layer address too, and I believe
it works for more than just wm(4).
What is the correct way of doing this ? ifconfig(4) uses SIOCALIFADDR
for this, but this works on a socket not a ifp; can it easily be used from
a kernel interface driver ?
while testing agr(4) with a cisco switch, I discovered that agr
relies on SIOCSIFADDR for AF_INET doing something usefull:
ifconfig agr0 agrport epic0 agrport wm0 works, while
ifconfig agr0 agrport wm0 agrport epic0 doens't.
AFAIK only wm(4) does something with SIOCSIFADDR(AF_INET), other
drivers either relies on ether_ioctl() which silently ignores it,
or have their own copy of ether_ioctl() which does the same.
ifconfig can change the link layer address too, and I believe
it works for more than just wm(4).
What is the correct way of doing this ? ifconfig(4) uses SIOCALIFADDR
for this, but this works on a socket not a ifp; can it easily be used from
a kernel interface driver ?
--
Manuel Bouyer <***@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de
Manuel Bouyer <***@antioche.eu.org>
NetBSD: 26 ans d'experience feront toujours la difference
--
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-***@muc.de