Page MenuHomeFreeBSD

D57334.id.diff
No OneTemporary

D57334.id.diff

diff --git a/share/man/man4/rtnetlink.4 b/share/man/man4/rtnetlink.4
--- a/share/man/man4/rtnetlink.4
+++ b/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 15, 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
diff --git a/sys/netlink/route/interface.h b/sys/netlink/route/interface.h
--- a/sys/netlink/route/interface.h
+++ b/sys/netlink/route/interface.h
@@ -36,8 +36,8 @@
struct ifinfomsg {
unsigned char ifi_family; /* not used */
unsigned char __ifi_pad;
- unsigned short ifi_type; /* ARPHRD_* */
- int ifi_index; /* Inteface index */
+ unsigned short ifi_type; /* IFT_* (net/if_types.h) */
+ int ifi_index; /* Interface index */
unsigned ifi_flags; /* IFF_* flags */
unsigned ifi_change; /* IFF_* change mask */
};

File Metadata

Mime Type
text/plain
Expires
Tue, Aug 25, 3:47 AM (5 h, 57 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37219823
Default Alt Text
D57334.id.diff (1 KB)

Event Timeline