From owner-freebsd-hackers Wed Aug 1 0:57:20 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from relay.tecc.co.uk (luggage.tecc.co.uk [193.128.6.129]) by hub.freebsd.org (Postfix) with SMTP id AC77037B403 for ; Wed, 1 Aug 2001 00:57:16 -0700 (PDT) (envelope-from andy@tecc.co.uk) Received: from southampton [195.217.37.155] by relay.tecc.co.uk with smtp (Exim 1.70 #1) id 15RqsV-0002bE-00; Wed, 1 Aug 2001 08:57:15 +0100 From: "Andy" To: Subject: FW: ioctl and fxp/tl drivers Date: Wed, 1 Aug 2001 08:57:15 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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