From owner-freebsd-questions Fri Feb 22 14:12:16 2002 Delivered-To: freebsd-questions@freebsd.org Received: from web12501.mail.yahoo.com (web12501.mail.yahoo.com [216.136.173.193]) by hub.freebsd.org (Postfix) with SMTP id 60FA237B402 for ; Fri, 22 Feb 2002 14:12:11 -0800 (PST) Message-ID: <20020222221211.24724.qmail@web12501.mail.yahoo.com> Received: from [216.69.69.193] by web12501.mail.yahoo.com via HTTP; Fri, 22 Feb 2002 14:12:11 PST Date: Fri, 22 Feb 2002 14:12:11 -0800 (PST) From: Anuranjan Shukla Subject: IOCTL problem in a n/w driver To: questions@freebsd.org Cc: anuranjan@yahoo.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have written some code for a network device driver (PCI) and am able to probe and attach it successfully. During the attach routine I can get the correct MAC address from the EEPROM and am able to initialize the card successfully too. The problem: It's with the ioctl interface that I've written. case SIOCSIFADDR: case SIOCGIFADDR: case SIOCSIFMTU: error = ether_ioctl(ifp, cmd, data); break; ::: In this I can set the LLADDR and MTU and can read the correct MTU using the "ifconfig" command. But interesting this is that In the output of the ifconfig I see: xx0: ...... MTU 1500 ether 00:00:00:00:00:00 Basically everything else is ok ( I can SET the MTU, LLADDR, INET etc) except that I get the ethernet address wrong on giving the ifconfig command. I tried putting some trace in the ether_ioctl function (if_ethersubr.c) but don't see any output. Can anyone tell me what the problem is? Any comments would be greatly appreciated. A __________________________________________________ Do You Yahoo!? Yahoo! Sports - Coverage of the 2002 Olympic Games http://sports.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message