Skip to contentSkip to conversation

RTP packet filtering

LARTC Lawrence MacIntyre 1 participant 1 message Oct 1, 2003

lore
Share & tools
lore
#0 lore raw

I havent't tested this, but it should work:

tc filter ... \
	match ip protocol 17 0xff \
	match u16 0x8000 0xffff at nexthdr + 8

The first match selects udp and the second selects the protocol information and payload type. Note that there is more info there than just the protocol version (no padding, no extension, no CSIDs). Also, why is the type 00?

Quoted 22 lines · Rafael Gustavo Gassner

Hi all,

I need to allow RTP packages on my network, but don´t want to
allow all UDP (And then ill try to priorize it), so i think i could do that using u32. I can see that all packages that are RTP have a field 80 00, as shown below (It is the protocol version and payload type):

0000 xx xx xx xx xx xx xx xx     xx xx xx xx xx xx xx xx
0010 xx xx xx xx xx xx xx xx     xx xx xx xx xx xx xx xx
0020 xx xx xx xx xx xx xx xx     xx xx 80 00 xx xx xx xx

Could someone give me a tip on how should the u32 filter look like?

Thanks a lot,

Rafael Gustavo Gassner

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Signature · 3 lines
    Lawrence MacIntyre     865.574.8696     [email protected]
               Oak Ridge National Laboratory
High Performance Information Infrastructure Technology Group