Originally posted to -net but no replies,
maybe some here could help me out? tia, Andy

-----Original Message-----
To: [EMAIL PROTECTED]
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 [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message


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

Reply via email to