FwmarkIPFilter¶
The FwmarkIPFilter uses the packet filter mark to
classify packets.
- class FwmarkIPFilter(*, prio=None, dest_class_handle: Optional[Handle] = None, filter_name=None, fwmark: Optional[int] = None)[source]¶
This class is used for filters that compare against the firewall mark when the ethernet frames carry IP datagrams (see tc-fw(8))
- Parameters:
prio – filter priority (integer)
dest_class_handle –
Handleof queuing class where filter-matching traffic will be directedfilter_name – user-friendly filter name (string)
fwmark – firewall mark (integer)
- add_action(action: TrafficAction) None¶
Add a filter action
- get_actions() List[TrafficAction]¶
Returns the action list for this filter
- get_dest_handle() Optional[Handle]¶
Returns the
Handleof theQClasswhere this filter will send traffic
- get_filter_name() Optional[str]¶
Returns the filter name
- get_filter_type() str¶
Returns the filter type
- get_match_name() Optional[str][source]¶
Returns a string with the name that describes the traffic matched by the filter.
- get_prio() int¶
Returns the filter priority
- is_instantiated() bool¶
Returns
Trueif the filter is in the kernel
- set_dest_handle(handle: Handle)¶
Sets the handle of the class where this filter will send traffic.
Raises
TcErrorif the filter is instantiated.
- set_filter_name(filter_name: str)¶
Set the filter name