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

filter u32



	Hi all,
	I'm using ds-6, linux-2.2.13 and iproute2-2.2.4-now-ss990630 and I'm a
beginner in DiffServ. By the moment, I'm trying to mark packets with a
different value of DSCP using a filter u32.
	Packets with a fixed port TCP or a fixed port UDP are assigned to a
class like you can see in this lines:

	tc class change dev eth0 classid 1:1 dsmark mask 0x3 value 0xb8
	tc class change dev eth0 classid 1:2 dsmark mask 0x3 value 0x88
	
	tc filter add dev eth0 parent 1:0 protocol ip handle 1: u32 divisor 1

	tc filter add dev eth0 parent 1:0 protocol ip u32 \
       		match udp src 0x6666 0xffff \
       		flowid 1:1
	tc filter add dev eth0 parent 1:0 protocol udp u32 \
       		match tcp src 0x4444 0xffff \
       		flowid 1:2
	
	But this configuration, with the last two sentence, doesn't work. I've
tried with this other expression for tcp:

	tc filter add dev eth0 parent 1:0 protocol ip u32 \
	        match ip protocol 6 0xff \
        	match ip sport 0x4444 0xffff \
       		flowid 1:2
and finally the packets from port tcp 4444 were marked. I'd like to use
the same expression for the udp ports but I don't know which number of
protocol has udp. 
Can someone help me?

	Marival
begin:vcard 
n:Cruz Romero;Marival
tel;work:91 336 73 66
x-mozilla-html:FALSE
url:http://www.dit.upm.es/~marival
org:ETSIT-UPM;DIT
version:2.1
email;internet:marival@dit.upm.es
adr;quoted-printable:;;ETSI Telecomunicaciones=0D=0ACiudad Universitaria s/n 28040;Madrid;;;
x-mozilla-cpt:;11648
fn:Marival Cruz Romero
end:vcard