Changeset View
Changeset View
Standalone View
Standalone View
share/man/man9/ifnet.9
Show All 22 Lines | |||||
.\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | .\" USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | ||||
.\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | .\" ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, | ||||
.\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | .\" OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT | ||||
.\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | .\" OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||||
.\" SUCH DAMAGE. | .\" SUCH DAMAGE. | ||||
.\" | .\" | ||||
.\" $FreeBSD$ | .\" $FreeBSD$ | ||||
.\" | .\" | ||||
.Dd November 14, 2018 | .Dd September 23, 2020 | ||||
.Dt IFNET 9 | .Dt IFNET 9 | ||||
.Os | .Os | ||||
.Sh NAME | .Sh NAME | ||||
.Nm ifnet , | .Nm ifnet , | ||||
.Nm ifaddr , | .Nm ifaddr , | ||||
.Nm ifqueue , | .Nm ifqueue , | ||||
.Nm if_data | .Nm if_data | ||||
.Nd kernel interfaces for manipulating network interfaces | .Nd kernel interfaces for manipulating network interfaces | ||||
▲ Show 20 Lines • Show All 1,265 Lines • ▼ Show 20 Lines | |||||
Set the interface name. | Set the interface name. | ||||
.Dv RTM_IFANNOUNCE | .Dv RTM_IFANNOUNCE | ||||
departure and arrival messages are sent so that | departure and arrival messages are sent so that | ||||
routing code that relies on the interface name will update its interface | routing code that relies on the interface name will update its interface | ||||
list. | list. | ||||
Caller must have appropriate privilege. | Caller must have appropriate privilege. | ||||
(No call-down to driver.) | (No call-down to driver.) | ||||
.It Dv SIOCGIFCAP | .It Dv SIOCGIFCAP | ||||
.It Dv SIOCGIFDATA | |||||
.It Dv SIOCGIFFIB | .It Dv SIOCGIFFIB | ||||
.It Dv SIOCGIFFLAGS | .It Dv SIOCGIFFLAGS | ||||
.It Dv SIOCGIFMETRIC | .It Dv SIOCGIFMETRIC | ||||
.It Dv SIOCGIFMTU | .It Dv SIOCGIFMTU | ||||
.It Dv SIOCGIFPHYS | .It Dv SIOCGIFPHYS | ||||
Get interface capabilities, FIB, flags, metric, MTU, medium selection. | Get interface capabilities, data, FIB, flags, metric, MTU, medium selection. | ||||
(No call-down to driver.) | (No call-down to driver.) | ||||
.Pp | .Pp | ||||
.It Dv SIOCSIFCAP | .It Dv SIOCSIFCAP | ||||
Enable or disable interface capabilities. | Enable or disable interface capabilities. | ||||
Caller must have appropriate privilege. | Caller must have appropriate privilege. | ||||
Before a call to the driver-specific | Before a call to the driver-specific | ||||
.Fn if_ioctl | .Fn if_ioctl | ||||
routine, the requested mask for enabled capabilities is checked | routine, the requested mask for enabled capabilities is checked | ||||
against the mask of capabilities supported by the interface, | against the mask of capabilities supported by the interface, | ||||
.Va if_capabilities . | .Va if_capabilities . | ||||
Requesting to enable an unsupported capability is invalid. | Requesting to enable an unsupported capability is invalid. | ||||
The rest is supposed to be done by the driver, | The rest is supposed to be done by the driver, | ||||
which includes updating | which includes updating | ||||
.Va if_capenable | .Va if_capenable | ||||
and | and | ||||
.Va if_data.ifi_hwassist | .Va if_data.ifi_hwassist | ||||
appropriately. | appropriately. | ||||
.Pp | .Pp | ||||
markj: There should be a more detailed description of the ioctl here. | |||||
roy_marples.nameAuthorUnsubmitted Not Done Inline ActionsThis area describes setting, not getting. This new ioctl only gets. roy_marples.name: This area describes setting, not getting. This new ioctl only gets.
What more would you like me… | |||||
markjUnsubmitted Not Done Inline ActionsAh, sorry. Reading through the man page I guess it's clear enough that "data" means if_data. markj: Ah, sorry. Reading through the man page I guess it's clear enough that "data" means if_data. | |||||
.It Dv SIOCSIFFIB | .It Dv SIOCSIFFIB | ||||
Sets interface FIB. | Sets interface FIB. | ||||
Caller must have appropriate privilege. | Caller must have appropriate privilege. | ||||
FIB values start at 0 and values greater or equals than | FIB values start at 0 and values greater or equals than | ||||
.Va net.fibs | .Va net.fibs | ||||
are considered invalid. | are considered invalid. | ||||
.It Dv SIOCSIFFLAGS | .It Dv SIOCSIFFLAGS | ||||
Change interface flags. | Change interface flags. | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |
There should be a more detailed description of the ioctl here.