1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
use crate::consts::{netfilter::NetfilterMsg, rtnl::Rtm};
impl_trait!(
pub NlType,
u16,
pub NlTypeWrapper,
Nlmsg,
GenlId,
Rtm,
NetfilterMsg
);
impl_var!(
pub Nlmsg, u16,
Noop => libc::NLMSG_NOOP as u16,
Error => libc::NLMSG_ERROR as u16,
Done => libc::NLMSG_DONE as u16,
Overrun => libc::NLMSG_OVERRUN as u16
);
impl_var!(
pub GenlId, u16,
Ctrl => libc::GENL_ID_CTRL as u16,
#[cfg(target_env="gnu")]
VfsDquot => libc::GENL_ID_VFS_DQUOT as u16,
#[cfg(target_env="gnu")]
Pmcraid => libc::GENL_ID_PMCRAID as u16
);
impl_var!(
pub NlmF, u16,
Request => libc::NLM_F_REQUEST as u16,
Multi => libc::NLM_F_MULTI as u16,
Ack => libc::NLM_F_ACK as u16,
Echo => libc::NLM_F_ECHO as u16,
DumpIntr => libc::NLM_F_DUMP_INTR as u16,
DumpFiltered => libc::NLM_F_DUMP_FILTERED as u16,
Root => libc::NLM_F_ROOT as u16,
Match => libc::NLM_F_MATCH as u16,
Atomic => libc::NLM_F_ATOMIC as u16,
Dump => libc::NLM_F_DUMP as u16,
Replace => libc::NLM_F_REPLACE as u16,
Excl => libc::NLM_F_EXCL as u16,
Create => libc::NLM_F_CREATE as u16,
Append => libc::NLM_F_APPEND as u16
);
impl_flags!(
#[allow(missing_docs)]
pub NlmFFlags, NlmF, u16
);