flower
flow based traffic control filter
- Provided by: iproute2 (Version: 4.3.0-1ubuntu3.16.04.5)
- Report a bug
flow based traffic control filter
tc filter ... flower [ MATCH_LIST ] [ action ACTION_SPEC ] [ classid CLASSID ]
MATCH_LIST := [ MATCH_LIST ] MATCH
MATCH := { indev ifname | { dst_mac | src_mac } mac_address | eth_type { ipv4 | ipv6 | ETH_TYPE } | ip_proto { tcp | udp | IP_PROTO } | { dst_ip | src_ip } { ipv4_address | ipv6_address } | { dst_port | src_port } port_number }
The flower filter matches flows to the set of keys specified and assigns an arbitrarily chosen class ID to packets belonging to them. Additionally (or alternatively) an action from the generic action framework may be called.
As stated above where applicable, matches of a certain layer implicitly depend on the matches of the next lower layer. Precisely, layer one and two matches ( indev,dst_mac,src_mac and eth_type) have no dependency, layer three matches ( ip_proto,dst_ip and src_ip) require eth_type being set to either ipv4 or ipv6, and finally layer four matches ( dst_port and src_port) depend on ip_proto being set to either tcp or udp.
There can be only used one mask per one prio. If user needs to specify different mask, he has to use different prio.