Not sure, if we want something like this:
tc filter add dev eth0 parent 1:0 prio 1 u32 match tcp dst 80 0xffff \
match ip protocol 0x6 0xff flowid 1:3
If it helps, try to add the 'match tcp' part thrice for three different ports.
(alternatively executing trice ?)
Please don't mind, if it doesn't work

( I have very little knowledge about it)