Deleted Added
full compact
ifnet.9 (147256) ifnet.9 (147398)
1.\" -*- Nroff -*-
2.\" Copyright 1996, 1997 Massachusetts Institute of Technology
3.\"
4.\" Permission to use, copy, modify, and distribute this software and
5.\" its documentation for any purpose and without fee is hereby
6.\" granted, provided that both the above copyright notice and this
7.\" permission notice appear in all copies, that both the above
8.\" copyright notice and this permission notice appear in all

--- 12 unchanged lines hidden (view full) ---

21.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27.\" SUCH DAMAGE.
28.\"
1.\" -*- Nroff -*-
2.\" Copyright 1996, 1997 Massachusetts Institute of Technology
3.\"
4.\" Permission to use, copy, modify, and distribute this software and
5.\" its documentation for any purpose and without fee is hereby
6.\" granted, provided that both the above copyright notice and this
7.\" permission notice appear in all copies, that both the above
8.\" copyright notice and this permission notice appear in all

--- 12 unchanged lines hidden (view full) ---

21.\" SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22.\" LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
25.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
26.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27.\" SUCH DAMAGE.
28.\"
29.\" $FreeBSD: head/share/man/man9/ifnet.9 147256 2005-06-10 16:49:24Z brooks $
29.\" $FreeBSD: head/share/man/man9/ifnet.9 147398 2005-06-15 13:31:23Z ru $
30.\"
30.\"
31.Dd June 8, 2004
31.Dd June 10, 2005
32.Os
33.Dt IFNET 9
34.Sh NAME
35.Nm ifnet ,
36.Nm ifaddr ,
37.Nm ifqueue ,
38.Nm if_data
39.Nd kernel interfaces for manipulating network interfaces

--- 959 unchanged lines hidden (view full) ---

999that link-layer address.
1000.It Va ifma_refcount
1001.Pq Vt u_int
1002A reference count of requests for this particular membership.
1003.El
1004.Ss Interface Manipulation Functions
1005.Bl -ohang -offset indent
1006.It Fn if_alloc
32.Os
33.Dt IFNET 9
34.Sh NAME
35.Nm ifnet ,
36.Nm ifaddr ,
37.Nm ifqueue ,
38.Nm if_data
39.Nd kernel interfaces for manipulating network interfaces

--- 959 unchanged lines hidden (view full) ---

999that link-layer address.
1000.It Va ifma_refcount
1001.Pq Vt u_int
1002A reference count of requests for this particular membership.
1003.El
1004.Ss Interface Manipulation Functions
1005.Bl -ohang -offset indent
1006.It Fn if_alloc
1007Allocate and initialize an
1008.Fa ifp .
1007Allocate and initialize
1008.Vt "struct ifnet" .
1009Initalization includes the allocation of an interface index and may
1010include the allocation of a
1011.Fa type
1012specific structure in
1013.Va if_l2com .
1014.It Fn if_attach
1015Link the specified interface
1016.Fa ifp

--- 18 unchanged lines hidden (view full) ---

1035.Fa ifp
1036back to the system.
1037The interface must have been previously detached if it was ever attached.
1038.It Fn if_free_type
1039Identical to
1040.Fn if_free
1041except that the given
1042.Fa type
1009Initalization includes the allocation of an interface index and may
1010include the allocation of a
1011.Fa type
1012specific structure in
1013.Va if_l2com .
1014.It Fn if_attach
1015Link the specified interface
1016.Fa ifp

--- 18 unchanged lines hidden (view full) ---

1035.Fa ifp
1036back to the system.
1037The interface must have been previously detached if it was ever attached.
1038.It Fn if_free_type
1039Identical to
1040.Fn if_free
1041except that the given
1042.Fa type
1043is used to free
1043is used to free
1044.Va if_l2com
1045instead of the type in
1046.Va if_type .
1047This is intended for use with drivers that change their interface type.
1048.It Fn if_down
1049Mark the interface
1050.Fa ifp
1051as down (i.e.,

--- 303 unchanged lines hidden ---
1044.Va if_l2com
1045instead of the type in
1046.Va if_type .
1047This is intended for use with drivers that change their interface type.
1048.It Fn if_down
1049Mark the interface
1050.Fa ifp
1051as down (i.e.,

--- 303 unchanged lines hidden ---