Struct rtnetlink::TrafficFilterHandle
source · pub struct TrafficFilterHandle { /* private fields */ }
Implementations§
source§impl TrafficFilterHandle
impl TrafficFilterHandle
pub fn new(handle: Handle, ifindex: i32) -> Self
sourcepub fn get(&mut self) -> TrafficFilterGetRequest
pub fn get(&mut self) -> TrafficFilterGetRequest
Retrieve the list of filter (equivalent to
tc filter show dev <iface_name>
)
sourcepub fn add(&mut self) -> TrafficFilterNewRequest
pub fn add(&mut self) -> TrafficFilterNewRequest
Add a filter to a node, don’t replace if the object already exists.
( equivalent to tc filter add dev STRING
)
sourcepub fn change(&mut self) -> TrafficFilterNewRequest
pub fn change(&mut self) -> TrafficFilterNewRequest
Change the filter, the handle cannot be changed and neither can the parent.
In other words, change cannot move a node.
( equivalent to tc filter change dev STRING
)
sourcepub fn replace(&mut self) -> TrafficFilterNewRequest
pub fn replace(&mut self) -> TrafficFilterNewRequest
Replace existing matching filter, create filter if it doesn’t already exist.
( equivalent to tc filter replace dev STRING
)