Subject: misc/3375: [dM] bpf manpage field name wrong
To: None <email@example.com>
From: der Mouse <mouse@Rodents.Montreal.QC.CA>
Date: 03/21/1997 20:48:35
>Synopsis: [dM] bpf manpage field name wrong
>Responsible: misc-bug-people (Misc Bug People)
>Arrival-Date: Fri Mar 21 18:05:01 1997
>Originator: der Mouse
>Release: 1.2_BETA (also present in -current)
Any (noticed on SPARCstation 2)
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.
Write code based on the manpage. Wonder why it won't compile.
--- 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 @@
.B BIOCGETIF (struct ifreq)
Returns the name of the hardware interface that the file is listening
-The name is returned in the if_name field of
+The name is returned in the ifr_name field of
All other fields are undefined.
@@ -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
field of the
Additionally, performs the actions of BIOCFLUSH.
7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B