summaryrefslogtreecommitdiffstats
path: root/share
diff options
context:
space:
mode:
authorpluknet <pluknet@FreeBSD.org>2012-03-06 08:59:42 +0000
committerpluknet <pluknet@FreeBSD.org>2012-03-06 08:59:42 +0000
commitbc68c66587c9c81a31b5228861016de9621df1ee (patch)
treea36434e3c8c0408583e72ea86519c340721d99e9 /share
parent2f6de1517fd8038b107b509d3eafbca03596f038 (diff)
downloadFreeBSD-src-bc68c66587c9c81a31b5228861016de9621df1ee.zip
FreeBSD-src-bc68c66587c9c81a31b5228861016de9621df1ee.tar.gz
- 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
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/ifnet.921
1 files changed, 16 insertions, 5 deletions
diff --git a/share/man/man9/ifnet.9 b/share/man/man9/ifnet.9
index 7b5b5aa..a2c9480 100644
--- a/share/man/man9/ifnet.9
+++ b/share/man/man9/ifnet.9
@@ -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 a link-layer
.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
OpenPOWER on IntegriCloud