netlink_packet_route/tc/actions/
nat_flag.rs
1const TCA_NAT_FLAG_EGRESS: u32 = 1;
4const TCA_ACT_FLAGS_USER_BITS: u32 = 16;
5const TCA_ACT_FLAGS_POLICE: u32 = 1u32 << TCA_ACT_FLAGS_USER_BITS;
6const TCA_ACT_FLAGS_BIND: u32 = 1u32 << (TCA_ACT_FLAGS_USER_BITS + 1);
7const TCA_ACT_FLAGS_REPLACE: u32 = 1u32 << (TCA_ACT_FLAGS_USER_BITS + 2);
8const TCA_ACT_FLAGS_NO_RTNL: u32 = 1u32 << (TCA_ACT_FLAGS_USER_BITS + 3);
9const TCA_ACT_FLAGS_AT_INGRESS: u32 = 1u32 << (TCA_ACT_FLAGS_USER_BITS + 4);
10
11bitflags! {
12 #[derive(Debug, PartialEq, Eq, Clone, Copy, Default)]
14 #[non_exhaustive]
15 pub struct TcNatFlags: u32 {
16 const Egress = TCA_NAT_FLAG_EGRESS;
17 const Police = TCA_ACT_FLAGS_POLICE;
18 const Bind = TCA_ACT_FLAGS_BIND;
19 const Replace = TCA_ACT_FLAGS_REPLACE;
20 const NoRtnl = TCA_ACT_FLAGS_NO_RTNL;
21 const AtIngress = TCA_ACT_FLAGS_AT_INGRESS;
22 const _ = !0;
23 }
24}