Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167691569
D57334.id179759.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D57334.id179759.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D57334: netlink: Indicate that ifinfomsg uses IFT_* types
Attached
Detach File
Event Timeline
Log In to Comment