@@ -1797,13 +1797,42 @@ pub const RT_CLASS_MAIN: u8 = 254;
1797
1797
pub const RT_CLASS_LOCAL : u8 = 255 ;
1798
1798
pub const RT_CLASS_MAX : u8 = 255 ;
1799
1799
1800
+ // linux/rtnetlink.h
1800
1801
pub const RTM_F_NOTIFY : :: c_uint = 0x100 ;
1801
1802
pub const RTM_F_CLONED : :: c_uint = 0x200 ;
1802
1803
pub const RTM_F_EQUALIZE : :: c_uint = 0x400 ;
1803
1804
pub const RTM_F_PREFIX : :: c_uint = 0x800 ;
1804
1805
pub const RTM_F_LOOKUP_TABLE : :: c_uint = 0x1000 ;
1805
1806
pub const RTM_F_FIB_MATCH : :: c_uint = 0x2000 ;
1806
1807
1808
+ pub const RTA_UNSPEC : :: c_ushort = 0 ;
1809
+ pub const RTA_DST : :: c_ushort = 1 ;
1810
+ pub const RTA_SRC : :: c_ushort = 2 ;
1811
+ pub const RTA_IIF : :: c_ushort = 3 ;
1812
+ pub const RTA_OIF : :: c_ushort = 4 ;
1813
+ pub const RTA_GATEWAY : :: c_ushort = 5 ;
1814
+ pub const RTA_PRIORITY : :: c_ushort = 6 ;
1815
+ pub const RTA_PREFSRC : :: c_ushort = 7 ;
1816
+ pub const RTA_METRICS : :: c_ushort = 8 ;
1817
+ pub const RTA_MULTIPATH : :: c_ushort = 9 ;
1818
+ pub const RTA_PROTOINFO : :: c_ushort = 10 ; // No longer used
1819
+ pub const RTA_FLOW : :: c_ushort = 11 ;
1820
+ pub const RTA_CACHEINFO : :: c_ushort = 12 ;
1821
+ pub const RTA_SESSION : :: c_ushort = 13 ; // No longer used
1822
+ pub const RTA_MP_ALGO : :: c_ushort = 14 ; // No longer used
1823
+ pub const RTA_TABLE : :: c_ushort = 15 ;
1824
+ pub const RTA_MARK : :: c_ushort = 16 ;
1825
+ pub const RTA_MFC_STATS : :: c_ushort = 17 ;
1826
+ pub const RTA_VIA : :: c_ushort = 18 ;
1827
+ pub const RTA_NEWDST : :: c_ushort = 19 ;
1828
+ pub const RTA_PREF : :: c_ushort = 20 ;
1829
+ pub const RTA_ENCAP_TYPE : :: c_ushort = 21 ;
1830
+ pub const RTA_ENCAP : :: c_ushort = 22 ;
1831
+ pub const RTA_EXPIRES : :: c_ushort = 23 ;
1832
+ pub const RTA_PAD : :: c_ushort = 24 ;
1833
+ pub const RTA_UID : :: c_ushort = 25 ;
1834
+ pub const RTA_TTL_PROPAGATE : :: c_ushort = 26 ;
1835
+
1807
1836
pub const RTMSG_OVERRUN : u32 = :: NLMSG_OVERRUN as u32 ;
1808
1837
pub const RTMSG_NEWDEVICE : u32 = 0x11 ;
1809
1838
pub const RTMSG_DELDEVICE : u32 = 0x12 ;
0 commit comments