From d89999ec855b12d5e7da0a7f8d2744fe5525e509 Mon Sep 17 00:00:00 2001 From: yar Date: Mon, 26 Jan 2004 11:48:26 +0000 Subject: [PATCH] Extend the description of SIOCSIFCAP. --- share/man/man9/ifnet.9 | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/share/man/man9/ifnet.9 b/share/man/man9/ifnet.9 index d659d6bd957d..c2bf431e76d5 100644 --- a/share/man/man9/ifnet.9 +++ b/share/man/man9/ifnet.9 @@ -961,6 +961,18 @@ Get interface capabilities, flags, metric, MTU, medium selection. .It Dv SIOCSIFCAP Enable or disable interface capabilities. Caller must have appropriate privilege. +Before a call to the driver-specific +.Fn if_ioctl +routine, the requested mask for enabled capabilities is checked +against the mask of capabilities supported by the interface, +.Va if_capabilities. +Requesting to enable an unsupported capability is invalid. +The rest is supposed to be done by the driver, +which includes updating +.Va if_capenable +and +.Va if_data.ifi_hwassist +appropriately. .Pp .It Dv SIOCSIFFLAGS Change interface flags.