* [LARTC] RTP packet filtering
@ 2003-09-30 21:13 Rafael Gustavo Gassner
0 siblings, 0 replies; 2+ messages in thread
From: Rafael Gustavo Gassner @ 2003-09-30 21:13 UTC (permalink / raw)
To: lartc
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 / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [LARTC] RTP packet filtering
@ 2003-10-01 13:29 Lawrence MacIntyre
0 siblings, 0 replies; 2+ messages in thread
From: Lawrence MacIntyre @ 2003-10-01 13:29 UTC (permalink / raw)
To: lartc
[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]
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,
>
> 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 / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
--
Lawrence MacIntyre 865.574.8696 lpz@ornl.gov
Oak Ridge National Laboratory
High Performance Information Infrastructure Technology Group
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-10-01 13:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-30 21:13 [LARTC] RTP packet filtering Rafael Gustavo Gassner
-- strict thread matches above, loose matches on Subject: below --
2003-10-01 13:29 Lawrence MacIntyre
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.