/*
 * prio+fw - Prio with FW classifier
 *
 * Like prio+rsvp, but using the fw classifier.
 */

#include "ip.def"

#define HIGH	TCP_PCK($src=10.0.0.2 $dst=10.0.0.1 \
		        $sport=PORT_HTTP $dport=PORT_USER)
#define LOW	TCP_PCK($src=10.0.0.1 $dst=10.0.0.2 \
		        $sport=PORT_USER $dport=PORT_HTTP)

dev eth0 100000 /* 100 Mbps */

tc qdisc add dev eth0 root handle 1:0 prio
tc filter add dev eth0 parent 1:0 proto ip fw 

send nfmark=2 LOW
send nfmark=2 LOW
send nfmark=1 HIGH

end
