[LARTC] RTP packet filtering

Lawrence MacIntyre lpz@ornl.gov
Wed, 01 Oct 2003 09:29:17 -0400


--=-gDTzfrhEKTbSAEfKdyj8
Content-Type: text/plain; charset=
Content-Transfer-Encoding: quoted-printable

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?

On Tue, 2003-09-30 at 17:13, Rafael Gustavo Gassner wrote:
> Hi all,
>=20
>      I need to allow RTP packages on my network, but don=C2=B4t want to=20
> allow all UDP (And then ill try to priorize it), so i think i could do=20
> that using u32. I can see that all packages that are RTP have a field=20
> 80 00, as shown below (It is the protocol version and payload type):
>=20
> 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
>=20
>      Could someone give me a tip on how should the u32 filter look like?
>=20
> Thanks a lot,
>=20
> Rafael Gustavo Gassner
>=20
>=20
>=20
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
--=20
    Lawrence MacIntyre     865.574.8696     lpz@ornl.gov
               Oak Ridge National Laboratory
High Performance Information Infrastructure Technology Group


--=-gDTzfrhEKTbSAEfKdyj8
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQA/etatCNjP8rawCW4RAnSYAJ44Ilx2pCBma6X+jE6mScO1htqkHACfVZhE
I4OL0JMRZfswaemDxDqmvZY=
=Ud94
-----END PGP SIGNATURE-----

--=-gDTzfrhEKTbSAEfKdyj8--