pub struct TrafficFilterNewRequest { /* private fields */ }

Implementations§

Execute the request

Set interface index. Equivalent to dev STRING, dev and block are mutually exlusive.

Set block index. Equivalent to block BLOCK_INDEX.

Set parent. Equivalent to [ root | ingress | egress | parent CLASSID ] command args. They are mutually exlusive.

Set parent to root.

Set parent to ingress.

Set parent to egress.

Set priority. Equivalent to priority PRIO or pref PRIO.

Set protocol. Equivalent to protocol PROT. Default: ETH_P_ALL 0x0003, see llproto_names at iproute2/lib/ll_proto.c.

The 32bit filter allows to match arbitrary bitfields in the packet. Equivalent to tc filter ... u32.

Use u32 to implement traffic redirect. Equivalent to tc filter add [dev source] [parent ffff:] [protocol all] u32 match u8 0 0 action mirred egress redirect dev dest You need to set the parent and protocol before call redirect.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.