NetBSD Problem Report #21513
Received: (qmail 27703 invoked by uid 605); 9 May 2003 19:03:45 -0000
Message-Id: <200305091050.h49AoaB00330@devo.RAP.CatchFS.Com>
Date: Fri, 9 May 2003 06:50:36 -0400 (EDT)
From: Ross.Patterson@CatchFS.Com
Sender: gnats-bugs-owner@netbsd.org
Reply-To: Ross.Patterson@CatchFS.Com
To: gnats-bugs@gnats.netbsd.org
Subject: "man bpf" wrong
X-Send-Pr-Version: 3.95
>Number: 21513
>Category: kern
>Synopsis: BPF man page says SIOCGIFADDR supported, not true.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: closed
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Fri May 09 19:04:00 +0000 2003
>Closed-Date: Tue Jun 08 04:12:13 +0000 2010
>Last-Modified: Tue Jun 08 04:15:02 +0000 2010
>Originator: Ross Patterson
>Release: NetBSD 1.6
>Organization:
CatchFIRE Systems, Inc.
>Environment:
System: NetBSD devo.rap.catchfs.com 1.6 NetBSD 1.6 (GENERIC) #0: Sun Sep 8 19:43:40 UTC 2002 autobuild@tgm.daemon.org:/autobuild/i386/OBJ/autobuild/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
The man page for bpf(4) says BPF supports the SIOCGIFADDR icotl, but
the code in src/sys/net/bpf.c doesn't do so. It looks like that code
was deliberately omitted in 1997 (rev 1.36).
>How-To-Repeat:
"man bpf"
>Fix:
>Release-Note:
>Audit-Trail:
From: Jukka Ruohonen <jruohonen@iki.fi>
To: gnats-bugs@NetBSD.org
Cc:
Subject: Re: kern/21513
Date: Fri, 22 May 2009 08:41:01 +0300
This seems to be still valid after six years.
I verified that "src/sys/net/bpf.c" indeed lacks SIOCGIFADDR and that a
small test program fails with Invalid argument.
Could this be closed with the following diff?
Index: bpf.4
===================================================================
RCS file: /cvsroot/src/share/man/man4/bpf.4,v
retrieving revision 1.39.26.1
diff -u -p -r1.39.26.1 bpf.4
--- bpf.4 11 Apr 2009 06:29:51 -0000 1.39.26.1
+++ bpf.4 22 May 2009 05:33:20 -0000
@@ -310,8 +310,6 @@ file descriptor.
.Bl -tag -width indent -offset indent
.It Dv FIONREAD (int)
Returns the number of bytes that are immediately available for reading.
-.It Dv SIOCGIFADDR (struct ifreq)
-Returns the address associated with the interface.
.It Dv FIONBIO (int)
Set or clear non-blocking I/O.
If arg is non-zero, then doing a
State-Changed-From-To: open->closed
State-Changed-By: jruoho@NetBSD.org
State-Changed-When: Tue, 08 Jun 2010 04:12:13 +0000
State-Changed-Why:
Finally fixed, thanks.
From: Jukka Ruohonen <jruoho@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/21513 CVS commit: src/share/man/man4
Date: Tue, 8 Jun 2010 04:11:07 +0000
Module Name: src
Committed By: jruoho
Date: Tue Jun 8 04:11:07 UTC 2010
Modified Files:
src/share/man/man4: bpf.4
Log Message:
Remove SIOCGIFADDR. Noted by Ross Patterson in PR kern/21513.
To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 src/share/man/man4/bpf.4
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.