netlink_packet_core/constants.rs
1// SPDX-License-Identifier: MIT
2
3/// Must be set on all request messages (typically from user space to kernel
4/// space)
5pub const NLM_F_REQUEST: u16 = 1;
6/// Indicates the message is part of a multipart message terminated by
7/// NLMSG_DONE
8pub const NLM_F_MULTIPART: u16 = 2;
9/// Request for an acknowledgment on success. Typical direction of request is
10/// from user space (CPC) to kernel space (FEC).
11pub const NLM_F_ACK: u16 = 4;
12/// Echo this request. Typical direction of request is from user space (CPC) to
13/// kernel space (FEC).
14pub const NLM_F_ECHO: u16 = 8;
15/// Dump was inconsistent due to sequence change
16pub const NLM_F_DUMP_INTR: u16 = 16;
17/// Dump was filtered as requested
18pub const NLM_F_DUMP_FILTERED: u16 = 32;
19/// Return the complete table instead of a single entry.
20pub const NLM_F_ROOT: u16 = 256;
21/// Return all entries matching criteria passed in message content.
22pub const NLM_F_MATCH: u16 = 512;
23/// Return an atomic snapshot of the table. Requires `CAP_NET_ADMIN` capability
24/// or a effective UID of 0.
25pub const NLM_F_ATOMIC: u16 = 1024;
26pub const NLM_F_DUMP: u16 = 768;
27/// Replace existing matching object.
28pub const NLM_F_REPLACE: u16 = 256;
29/// Don't replace if the object already exists.
30pub const NLM_F_EXCL: u16 = 512;
31/// Create object if it doesn't already exist.
32pub const NLM_F_CREATE: u16 = 1024;
33/// Add to the end of the object list.
34pub const NLM_F_APPEND: u16 = 2048;
35
36/// Do not delete recursively
37pub const NLM_F_NONREC: u16 = 256;
38/// request was capped
39pub const NLM_F_CAPPED: u16 = 256;
40/// extended ACK TVLs were included
41pub const NLM_F_ACK_TLVS: u16 = 512;