tc filter for unmatched traffic

From: sting
Date: Tue Apr 28 2009 - 12:56:07 EST


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