From owner-freebsd-net Mon Jul 30 7:22:50 2001 Delivered-To: freebsd-net@freebsd.org Received: from relay.tecc.co.uk (luggage.tecc.co.uk [193.128.6.129]) by hub.freebsd.org (Postfix) with SMTP id 75FF137B401 for ; Mon, 30 Jul 2001 07:22:46 -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 15RDwT-0006lN-00; Mon, 30 Jul 2001 15:22:45 +0100 From: "Andy" To: Subject: ioctl and fxp/tl drivers Date: Mon, 30 Jul 2001 15:22:45 +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-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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