docs/159341: [patch] incorrect reference to netinet/if_ether.h in ethers(3)

Garrett Cooper yanegomi at gmail.com
Sun Jul 31 23:50:07 UTC 2011


>Number:         159341
>Category:       docs
>Synopsis:       [patch] incorrect reference to netinet/if_ether.h in ethers(3)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-doc
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jul 31 23:50:07 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        CURRENT
>Organization:
n/a
>Environment:
>Description:
ethers(3) recommends that the user should look in netinet/if_ether.h, instead of net/ethernet.h, where the definition actually resides.

This doc bug was introduced in r20288 ( http://svnweb.freebsd.org/base?view=revision&revision=20288 ).

This bug has been around for more than a decade.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

Index: lib/libc/net/ethers.3
===================================================================
--- lib/libc/net/ethers.3	(revision 223824)
+++ lib/libc/net/ethers.3	(working copy)
@@ -68,7 +68,7 @@
 These functions operate on ethernet addresses using an
 .Vt ether_addr
 structure, which is defined in the header file
-.In netinet/if_ether.h :
+.In net/ethernet.h :
 .Bd -literal -offset indent
 /*
  * The number of bytes in an ethernet (MAC) address.


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



More information about the freebsd-doc mailing list