NetBSD Problem Report #7997

Received: (qmail 22912 invoked from network); 15 Jul 1999 00:47:41 -0000
Message-Id: <199907150047.UAA13113@kolvir.arlington.ma.us>
Date: Wed, 14 Jul 1999 20:47:38 -0400 (EDT)
From: John Kohl <jtk@kolvir.arlington.ma.us>
Reply-To: jtk@kolvir.arlington.ma.us
To: gnats-bugs@gnats.netbsd.org
Subject: no emulation for linux SIOCGIFHWADDR
X-Send-Pr-Version: 3.95

>Number:         7997
>Category:       kern
>Synopsis:       no emulation for linux SIOCGIFHWADDR
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    jtk
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jul 14 17:50:00 +0000 1999
>Closed-Date:    Sat Jul 17 22:04:37 +0000 1999
>Last-Modified:  Sat Jul 17 22:05:14 +0000 1999
>Originator:     John Kohl
>Release:        NetBSD-current, 1999-07-12
>Organization:
NetBSD Kernel Hackers `R` Us
>Environment:

System: NetBSD kolvir.arlington.ma.us 1.4F NetBSD 1.4F (KOLVIR) #0: Mon Jul 12 19:09:08 EDT 1999 jtk@kolvir.arlington.ma.us:/usr/u4/sandbox/src/sys/arch/i386/compile/KOLVIR i386


>Description:
no emulation for SIOCGIFHWADDR


>How-To-Repeat:
Use a linux program that calls ioctl() for SIOCGIFHWADDR.  Get EINVAL:

 12868 program CALL  ioctl(0x3,_IO('<89>',0x27,0),0xefbfca90)
 12868 program RET   ioctl -1 errno -22 Invalid argument

>Fix:
The call takes a struct ifreq with ifr_name set to the interface name.
The emulation should probably convert from "eth0" to the first ethernet
interface, from "eth1" to the second, etc.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: kern-bug-people->jtk 
Responsible-Changed-By: jtk 
Responsible-Changed-When: Fri Jul 16 08:45:19 PDT 1999 
Responsible-Changed-Why:  
I'll fix this. 
State-Changed-From-To: open->closed 
State-Changed-By: jtk 
State-Changed-When: Sat Jul 17 15:04:37 PDT 1999 
State-Changed-Why:  
implemented emulation for SIOCGIFHWADDR 
>Unformatted:
 I've got a version working which I'll commit this weekend

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.