From owner-svn-src-all@FreeBSD.ORG Tue Mar 6 08:59:42 2012 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DC07B1065672; Tue, 6 Mar 2012 08:59:42 +0000 (UTC) (envelope-from pluknet@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id ADBDF8FC0A; Tue, 6 Mar 2012 08:59:42 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q268xgc9028712; Tue, 6 Mar 2012 08:59:42 GMT (envelope-from pluknet@svn.freebsd.org) Received: (from pluknet@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q268xgWq028710; Tue, 6 Mar 2012 08:59:42 GMT (envelope-from pluknet@svn.freebsd.org) Message-Id: <201203060859.q268xgWq028710@svn.freebsd.org> From: Sergey Kandaurov Date: Tue, 6 Mar 2012 08:59:42 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r232588 - head/share/man/man9 X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Mar 2012 08:59:43 -0000 Author: pluknet Date: Tue Mar 6 08:59:42 2012 New Revision: 232588 URL: http://svn.freebsd.org/changeset/base/232588 Log: - ifnet_addrs has gone and replaced by ifaddr_byindex(), as per r83130 - access to the AF_LINK address through if_addrhead is deprecated (r128315) MFC after: 1 week Modified: head/share/man/man9/ifnet.9 Modified: head/share/man/man9/ifnet.9 ============================================================================== --- head/share/man/man9/ifnet.9 Tue Mar 6 08:40:21 2012 (r232587) +++ head/share/man/man9/ifnet.9 Tue Mar 6 08:59:42 2012 (r232588) @@ -73,6 +73,8 @@ .\" .Ss "Interface Address Functions" .Ft "struct ifaddr *" +.Fn ifaddr_byindex "u_short idx" +.Ft "struct ifaddr *" .Fn ifa_ifwithaddr "struct sockaddr *addr" .Ft "struct ifaddr *" .Fn ifa_ifwithdstaddr "struct sockaddr *addr" @@ -127,7 +129,7 @@ .\" .Ss "Global Variables" .Vt extern struct ifnethead ifnet ; -.Vt extern struct ifaddr **ifnet_addrs ; +.\" extern struct ifindex_entry *ifindex_table ; .Vt extern int if_index ; .Vt extern int ifqmaxlen ; .Sh DATA STRUCTURES @@ -192,12 +194,18 @@ Each interface also has a .Li TAILQ of interface addresses, described by .Vt ifaddr -structures; the head of the queue is always an +structures. +An .Dv AF_LINK address (see .Xr link_addr 3 ) -describing the link layer implemented by the interface (if any). +describing the link layer implemented by the interface (if any) +is accessed by the +.Fn ifaddr_byindex +function or +.Va if_addr +structure. (Some trivial interfaces do not provide any link layer addresses; this structure, while still present, serves only to identify the interface name and index.) @@ -1085,8 +1093,11 @@ addresses on that interface, and create .Vt ifaddr structure to be the first element in that list. (A pointer to -this address structure is saved in the global array -.Va ifnet_addrs . ) +this address structure is saved in the +.Vt ifnet +structure and shall be accessed by the +.Fn ifaddr_byindex +function.) The .Fa ifp must have been allocated by