Date: Wed, 1 Aug 2001 08:57:15 +0100 From: "Andy" <andy@tecc.co.uk> To: <freebsd-hackers@freebsd.org> Subject: FW: ioctl and fxp/tl drivers Message-ID: <NDBBKOKIGKLFGGPFHCGBEEFEDEAA.andy@tecc.co.uk>
next in thread | raw e-mail | index | archive | help
Originally posted to -net but no replies,
maybe some here could help me out? tia, Andy
-----Original Message-----
To: freebsd-net@freebsd.org
Subject: ioctl and fxp/tl drivers
Hi all
This maybe a dumb question but a bit
stumped at the mo. When I make an
ioctl call to the fxp or tl drivers
thus:
if ((ret=ioctl(s, SIOCSIFLLADDR, (caddr_t)&ifr)) < 0)
syslog(LOG_ERR, "ioctl (set lladdr): %m");
I get:-
ioctl (set lladdr): Inappropriate ioctl for device
Also, :-
ret = ioctl(fd, addF ? SIOCADDMULTI : SIOCDELMULTI, (char *) &ifr);
if (ret) {
syslog( LOG_ERR, "Can't %s on %s: %m"
,addF ? "SIOCADDMULTI" : "SIOCDELMULTI"
,ifname);
}
I get:-
Can't SIOCADDMULTI on fxp0: Can't assign requested address
Also, when the call is SIOCDELMULTI (rather than ADD) I get
Can't SIOCDELMULTI on fxp0: No such file or directory
Same on the tl device. I've had a look in the driver source
and those calls appear to be supported. Can supply some debug
info if required but maybe the combined brains out there can
spot the obvious I'm missing?
tia, regards
Andy
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?NDBBKOKIGKLFGGPFHCGBEEFEDEAA.andy>
