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