tc filter for unmatched traffic

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Section 9.6.1 of the LARTC HOWTO gives the following example:

http://lartc.org/howto/lartc.qdisc.filters.html#AEN1100

# tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match \
  ip dport 22 0xffff flowid 10:1
# tc filter add dev eth0 protocol ip parent 10: prio 1 u32 match \
  ip sport 80 0xffff flowid 10:1
# tc filter add dev eth0 protocol ip parent 10: prio 2 flowid 10:2

The last line is supposed to send all unmatched traffic the band 2. However when trying to issue this command I get the following error (for me the parent is 1: and the class I want to send it to is 1:3):

> tc filter add dev wlan0 protocol ip parent 1: prio 2 flowid 1:3
> Unknown filter "flowid", hence option "1:3" is unparsable

Is it still valid to issue a filter with no matches or is this a notation that has is invalid today? Or was the example wrong in the first place?

Also, any reason the example sets that last filter as a priority 2 as opposed to 1?

Thank you.
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux