Skip to content

Commit 62ef1b7

Browse files
committed
RTN_ and RTPROT_ consts
1 parent 81c79c5 commit 62ef1b7

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1833,6 +1833,25 @@ pub const RTA_PAD: ::c_ushort = 24;
18331833
pub const RTA_UID: ::c_ushort = 25;
18341834
pub const RTA_TTL_PROPAGATE: ::c_ushort = 26;
18351835

1836+
pub const RTN_UNSPEC: ::c_uchar = 0;
1837+
pub const RTN_UNICAST: ::c_uchar = 1;
1838+
pub const RTN_LOCAL: ::c_uchar = 2;
1839+
pub const RTN_BROADCAST: ::c_uchar = 3;
1840+
pub const RTN_ANYCAST: ::c_uchar = 4;
1841+
pub const RTN_MULTICAST: ::c_uchar = 5;
1842+
pub const RTN_BLACKHOLE: ::c_uchar = 6;
1843+
pub const RTN_UNREACHABLE: ::c_uchar = 7;
1844+
pub const RTN_PROHIBIT: ::c_uchar = 8;
1845+
pub const RTN_THROW: ::c_uchar = 9;
1846+
pub const RTN_NAT: ::c_uchar = 10;
1847+
pub const RTN_XRESOLVE: ::c_uchar = 11;
1848+
1849+
pub const RTPROT_UNSPEC: ::c_uchar = 0;
1850+
pub const RTPROT_REDIRECT: ::c_uchar = 1;
1851+
pub const RTPROT_KERNEL: ::c_uchar = 2;
1852+
pub const RTPROT_BOOT: ::c_uchar = 3;
1853+
pub const RTPROT_STATIC: ::c_uchar = 4;
1854+
18361855
pub const RTMSG_OVERRUN: u32 = ::NLMSG_OVERRUN as u32;
18371856
pub const RTMSG_NEWDEVICE: u32 = 0x11;
18381857
pub const RTMSG_DELDEVICE: u32 = 0x12;

0 commit comments

Comments
 (0)