>Number:         6352
>Category:       documentation
>Synopsis:       bpf.4 manual page documents invalid ioctl
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Wed Apr 07 23:10:01 GMT 2010
>Closed-Date:
>Last-Modified:
>Originator:     
>Release:        
>Organization:
>Environment:
        System      : OpenBSD 4.5
        Details     : OpenBSD 4.5-stable (GENERIC) #1: Fri Oct  9 22:40:53 EDT 
2009
                         
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC

        Architecture: OpenBSD.i386
        Machine     : i386
>Description:
        bpf.4 manual page describes ioctl SIOCGIFADDR, but this ioctl is not 
actually implemented in bpfioctl().
>How-To-Repeat:
>Fix:
Remove the reference to SIOCGIFADDR in the bpf manual page:

--- bpf.4.orig  Wed Apr  7 15:40:30 2010
+++ bpf.4       Wed Apr  7 15:40:44 2010
@@ -429,9 +429,6 @@
 .It Dv FIONREAD Fa "int *"
 Returns the number of bytes that are immediately available for reading.
 .Pp
-.It Dv SIOCGIFADDR Fa "struct ifreq *"
-Returns the address associated with the interface.
-.Pp
 .It Dv FIONBIO Fa "int *"
 Sets or clears non-blocking I/O.
 If the argument is non-zero, enable non-blocking I/O.


>Release-Note:
>Audit-Trail:
>Unformatted:

Reply via email to