From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessandro Oliveira Ungaro Date: Fri, 11 Mar 2005 14:04:48 +0000 Subject: [LARTC] QoS and VoIP Message-Id: <4231A580.8080707@ccpbr.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I made some filters on tc to match the VoIP traffic based on RTP packet RFC 1889. The only patern I found was the rtp version and the payload type wich identify the codec. The u32 rules are: - - match ip protocol 0x11 0xff -> UDP - - match u8 0x80 0xc0 at 28 -> RTP version 2 (two fists bits '10' of the byte) - - match u8 0x61 0x7f at 29 -> Codec number 97 (seven bits of the byte without the first bit) This with a iptables marking the packet with dport and sport > 1024 work fine. But if I have more codecs I need more filter rules. Some idea to match better? Thanks. x-arnie -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.7 (GNU/Linux) iD8DBQFCMaWASp5uKJPliCsRAh3HAJwIGeFfWcUp+xu4/Hvdsnm2YIdCzACfW2wt j3HJghFYfZPlWVshRR8cx9Y=8Ewq -----END PGP SIGNATURE----- _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc