Deleted Added
full compact
ifnet.9 (210525) ifnet.9 (223735)
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 210525 2010-07-27 08:45:29Z simon $
29.\" $FreeBSD: head/share/man/man9/ifnet.9 223735 2011-07-03 12:22:02Z bz $
30.\"
30.\"
31.Dd December 1, 2009
31.Dd July 3, 2011
32.Dt IFNET 9
33.Os
34.Sh NAME
35.Nm ifnet ,
36.Nm ifaddr ,
37.Nm ifqueue ,
38.Nm if_data
39.Nd kernel interfaces for manipulating network interfaces

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

1164Set the interface name.
1165.Dv RTM_IFANNOUNCE
1166departure and arrival messages are sent so that
1167routing code that relies on the interface name will update its interface
1168list.
1169Caller must have appropriate privilege.
1170(No call-down to driver.)
1171.It Dv SIOCGIFCAP
32.Dt IFNET 9
33.Os
34.Sh NAME
35.Nm ifnet ,
36.Nm ifaddr ,
37.Nm ifqueue ,
38.Nm if_data
39.Nd kernel interfaces for manipulating network interfaces

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

1164Set the interface name.
1165.Dv RTM_IFANNOUNCE
1166departure and arrival messages are sent so that
1167routing code that relies on the interface name will update its interface
1168list.
1169Caller must have appropriate privilege.
1170(No call-down to driver.)
1171.It Dv SIOCGIFCAP
1172.It Dv SIOCGIFFIB
1172.It Dv SIOCGIFFLAGS
1173.It Dv SIOCGIFMETRIC
1174.It Dv SIOCGIFMTU
1175.It Dv SIOCGIFPHYS
1173.It Dv SIOCGIFFLAGS
1174.It Dv SIOCGIFMETRIC
1175.It Dv SIOCGIFMTU
1176.It Dv SIOCGIFPHYS
1176Get interface capabilities, flags, metric, MTU, medium selection.
1177Get interface capabilities, FIB, flags, metric, MTU, medium selection.
1177(No call-down to driver.)
1178.Pp
1179.It Dv SIOCSIFCAP
1180Enable or disable interface capabilities.
1181Caller must have appropriate privilege.
1182Before a call to the driver-specific
1183.Fn if_ioctl
1184routine, the requested mask for enabled capabilities is checked
1185against the mask of capabilities supported by the interface,
1186.Va if_capabilities .
1187Requesting to enable an unsupported capability is invalid.
1188The rest is supposed to be done by the driver,
1189which includes updating
1190.Va if_capenable
1191and
1192.Va if_data.ifi_hwassist
1193appropriately.
1194.Pp
1178(No call-down to driver.)
1179.Pp
1180.It Dv SIOCSIFCAP
1181Enable or disable interface capabilities.
1182Caller must have appropriate privilege.
1183Before a call to the driver-specific
1184.Fn if_ioctl
1185routine, the requested mask for enabled capabilities is checked
1186against the mask of capabilities supported by the interface,
1187.Va if_capabilities .
1188Requesting to enable an unsupported capability is invalid.
1189The rest is supposed to be done by the driver,
1190which includes updating
1191.Va if_capenable
1192and
1193.Va if_data.ifi_hwassist
1194appropriately.
1195.Pp
1196.It Dv SIOCSIFFIB
1197Sets interface FIB.
1198Caller must have appropriate privilege.
1199FIB values start at 0 and values greater or equals than
1200.Va net.fibs
1201are considered invalid.
1195.It Dv SIOCSIFFLAGS
1196Change interface flags.
1197Caller must have appropriate privilege.
1198If a change to the
1199.Dv IFF_UP
1200flag is requested,
1201.Fn if_up
1202or

--- 198 unchanged lines hidden ---
1202.It Dv SIOCSIFFLAGS
1203Change interface flags.
1204Caller must have appropriate privilege.
1205If a change to the
1206.Dv IFF_UP
1207flag is requested,
1208.Fn if_up
1209or

--- 198 unchanged lines hidden ---