netlink_bindings/
consts.rs1pub const NLA_ALIGNTO: i32 = 4;
5
6pub const NETLINK_ROUTE: i32 = 0;
7pub const NETLINK_UNUSED: i32 = 1;
8pub const NETLINK_USERSOCK: i32 = 2;
9pub const NETLINK_FIREWALL: i32 = 3;
10pub const NETLINK_SOCK_DIAG: i32 = 4;
11pub const NETLINK_NFLOG: i32 = 5;
12pub const NETLINK_XFRM: i32 = 6;
13pub const NETLINK_SELINUX: i32 = 7;
14pub const NETLINK_ISCSI: i32 = 8;
15pub const NETLINK_AUDIT: i32 = 9;
16pub const NETLINK_FIB_LOOKUP: i32 = 10;
17pub const NETLINK_CONNECTOR: i32 = 11;
18pub const NETLINK_NETFILTER: i32 = 12;
19pub const NETLINK_IP6_FW: i32 = 13;
20pub const NETLINK_DNRTMSG: i32 = 14;
21pub const NETLINK_KOBJECT_UEVENT: i32 = 15;
22pub const NETLINK_GENERIC: i32 = 16;
23pub const NETLINK_SCSITRANSPORT: i32 = 18;
24pub const NETLINK_ECRYPTFS: i32 = 19;
25pub const NETLINK_RDMA: i32 = 20;
26pub const NETLINK_CRYPTO: i32 = 21;
27pub const NETLINK_INET_DIAG: i32 = NETLINK_SOCK_DIAG;
28
29pub const NLM_F_REQUEST: i32 = 1;
30pub const NLM_F_MULTI: i32 = 2;
31pub const NLM_F_ACK: i32 = 4;
32pub const NLM_F_ECHO: i32 = 8;
33pub const NLM_F_DUMP_INTR: i32 = 16;
34pub const NLM_F_DUMP_FILTERED: i32 = 32;
35
36pub const NLM_F_ROOT: i32 = 0x100;
37pub const NLM_F_MATCH: i32 = 0x200;
38pub const NLM_F_ATOMIC: i32 = 0x400;
39pub const NLM_F_DUMP: i32 = NLM_F_ROOT | NLM_F_MATCH;
40
41pub const NLM_F_REPLACE: i32 = 0x100;
42pub const NLM_F_EXCL: i32 = 0x200;
43pub const NLM_F_CREATE: i32 = 0x400;
44pub const NLM_F_APPEND: i32 = 0x800;
45
46pub const NLM_F_NONREC: i32 = 0x100;
47pub const NLM_F_BULK: i32 = 0x200;
48
49pub const NLM_F_CAPPED: i32 = 0x100;
50pub const NLM_F_ACK_TLVS: i32 = 0x200;
51
52pub const NETLINK_ADD_MEMBERSHIP: i32 = 1;
53pub const NETLINK_DROP_MEMBERSHIP: i32 = 2;
54pub const NETLINK_PKTINFO: i32 = 3;
55pub const NETLINK_BROADCAST_ERROR: i32 = 4;
56pub const NETLINK_NO_ENOBUFS: i32 = 5;
57pub const NETLINK_RX_RING: i32 = 6;
58pub const NETLINK_TX_RING: i32 = 7;
59pub const NETLINK_LISTEN_ALL_NSID: i32 = 8;
60pub const NETLINK_LIST_MEMBERSHIPS: i32 = 9;
61pub const NETLINK_CAP_ACK: i32 = 10;
62pub const NETLINK_EXT_ACK: i32 = 11;
63pub const NETLINK_GET_STRICT_CHK: i32 = 12;
64
65pub const NLA_F_NESTED: i32 = 1 << 15;
66pub const NLA_F_NET_BYTEORDER: i32 = 1 << 14;
67pub const NLA_TYPE_MASK: i32 = !(NLA_F_NESTED | NLA_F_NET_BYTEORDER);