Subject: misc/3375: [dM] bpf manpage field name wrong
To: None <gnats-bugs@gnats.netbsd.org>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
List: netbsd-bugs
Date: 03/21/1997 20:48:35
>Number:         3375
>Category:       misc
>Synopsis:       [dM] bpf manpage field name wrong
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    misc-bug-people (Misc Bug People)
>State:          open
>Class:          doc-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 21 18:05:01 1997
>Last-Modified:
>Originator:     der Mouse
>Organization:
	Dis-
>Release:        1.2_BETA (also present in -current)
>Environment:
	Any (noticed on SPARCstation 2)
>Description:
	bpf(4) describes the BIOC[SG]ETIF ioctls, saying that the
	if_name member of the struct ifreq is used.  The member is
	actually called ifr_name.
>How-To-Repeat:
	Write code based on the manpage.  Wonder why it won't compile.
>Fix:
	--- OLD/share/man/man4/bpf.4    Thu Jan  1 00:00:00 1970
	+++ NEW/share/man/man4/bpf.4    Thu Jan  1 00:00:00 1970
	@@ -140,7 +140,7 @@
	 .TP 10
	 .B BIOCGETIF (struct ifreq)
	 Returns the name of the hardware interface that the file is listening
	 on.
	-The name is returned in the if_name field of 
	+The name is returned in the ifr_name field of 
	 .I ifr.
	 All other fields are undefined.
	 .TP 10
	@@ -148,7 +148,7 @@
	 Sets the hardware interface associate with the file.  This
	 command must be performed before any packets can be read.
	 The device is indicated by name using the
	-.I if_name
	+.I ifr_name
	 field of the 
	 .I ifreq.
	 Additionally, performs the actions of BIOCFLUSH.

					der Mouse

			       mouse@rodents.montreal.qc.ca
		     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B
>Audit-Trail:
>Unformatted: