Struct rtnetlink::TrafficFilterNewRequest
source · pub struct TrafficFilterNewRequest { /* private fields */ }
Implementations§
source§impl TrafficFilterNewRequest
impl TrafficFilterNewRequest
sourcepub fn index(self, index: i32) -> Self
pub fn index(self, index: i32) -> Self
Set interface index.
Equivalent to dev STRING
, dev and block are mutually exlusive.
sourcepub fn parent(self, parent: u32) -> Self
pub fn parent(self, parent: u32) -> Self
Set parent.
Equivalent to [ root | ingress | egress | parent CLASSID ]
command args. They are mutually exlusive.
sourcepub fn priority(self, priority: u16) -> Self
pub fn priority(self, priority: u16) -> Self
Set priority.
Equivalent to priority PRIO
or pref PRIO
.
sourcepub fn protocol(self, protocol: u16) -> Self
pub fn protocol(self, protocol: u16) -> Self
Set protocol.
Equivalent to protocol PROT
.
Default: ETH_P_ALL 0x0003, see llproto_names at iproute2/lib/ll_proto.c.