diff options
author | bors <bors@rust-lang.org> | 2023-05-06 06:25:51 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-05-06 06:25:51 +0000 |
commit | a11d63a0c747c8991bb488e62de0ebd14b86bae9 (patch) | |
tree | a9bc06d440f09a646794948b644ecfd1033fd7db /src/unix/linux_like/linux | |
parent | 461807bbd16fb1bf8ad076cc839f57ca4ca0b9d1 (diff) | |
parent | 1abdc6158a5d200189fccb2f89c1b703ec86253e (diff) | |
download | rust-libc-a11d63a0c747c8991bb488e62de0ebd14b86bae9.tar.gz |
Auto merge of #3051 - tones111:rtnl_if_enum, r=JohnTitor
linux: add rtnetlink ifinfomsg attribute enumerals
Diffstat (limited to 'src/unix/linux_like/linux')
-rw-r--r-- | src/unix/linux_like/linux/mod.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/unix/linux_like/linux/mod.rs b/src/unix/linux_like/linux/mod.rs index dae589fd14..45a383b405 100644 --- a/src/unix/linux_like/linux/mod.rs +++ b/src/unix/linux_like/linux/mod.rs @@ -3192,6 +3192,19 @@ pub const ALG_SET_AEAD_AUTHSIZE: ::c_int = 5; pub const ALG_OP_DECRYPT: ::c_int = 0; pub const ALG_OP_ENCRYPT: ::c_int = 1; +// include/uapi/linux/if.h +pub const IF_OPER_UNKNOWN: ::c_int = 0; +pub const IF_OPER_NOTPRESENT: ::c_int = 1; +pub const IF_OPER_DOWN: ::c_int = 2; +pub const IF_OPER_LOWERLAYERDOWN: ::c_int = 3; +pub const IF_OPER_TESTING: ::c_int = 4; +pub const IF_OPER_DORMANT: ::c_int = 5; +pub const IF_OPER_UP: ::c_int = 6; + +pub const IF_LINK_MODE_DEFAULT: ::c_int = 0; +pub const IF_LINK_MODE_DORMANT: ::c_int = 1; +pub const IF_LINK_MODE_TESTING: ::c_int = 2; + // include/uapi/linux/udp.h pub const UDP_CORK: ::c_int = 1; pub const UDP_ENCAP: ::c_int = 100; |