Page MenuHomeFreeBSD

D57334.id179759.diff
No OneTemporary

D57334.id179759.diff

Index: share/man/man4/rtnetlink.4
===================================================================
--- share/man/man4/rtnetlink.4
+++ share/man/man4/rtnetlink.4
@@ -22,7 +22,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.Dd May 15, 2026
+.Dd June 14, 2026
.Dt RTNETLINK 4
.Os
.Sh NAME
@@ -275,12 +275,25 @@
struct ifinfomsg {
unsigned char ifi_family; /* not used, set to 0 */
unsigned char __ifi_pad;
- unsigned short ifi_type; /* ARPHRD_* */
+ unsigned short ifi_type; /* IFT_* */
int ifi_index; /* Interface index */
unsigned ifi_flags; /* IFF_* flags */
unsigned ifi_change; /* IFF_* change mask */
};
.Ed
+.Pp
+.Sy Note :
+On
+.Fx
+the
+.Va ifi_type
+field uses
+.Dv IFT_*
+constants from
+.In net/if_types.h
+rather than
+.Dv ARPHRD_*
+as on Linux.
.Ss RTM_NEWLINK
Creates a new interface.
The only mandatory TLV is
Index: sys/netlink/route/interface.h
===================================================================
--- sys/netlink/route/interface.h
+++ sys/netlink/route/interface.h
@@ -36,7 +36,7 @@
struct ifinfomsg {
unsigned char ifi_family; /* not used */
unsigned char __ifi_pad;
- unsigned short ifi_type; /* ARPHRD_* */
+ unsigned short ifi_type; /* IFT_* (net/if_types.h) */
int ifi_index; /* Inteface index */
unsigned ifi_flags; /* IFF_* flags */
unsigned ifi_change; /* IFF_* change mask */

File Metadata

Mime Type
text/plain
Expires
Mon, Aug 24, 7:42 PM (11 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37202520
Default Alt Text
D57334.id179759.diff (1 KB)

Event Timeline