Networking Forums

Networking Forums > Computer Networking > Linux Networking > tc filters and libpcap

Reply
Thread Tools Display Modes

tc filters and libpcap

 
 
Adam
Guest
Posts: n/a

 
      06-02-2011, 04:05 PM
Hi
I'm trying to use tc to shape traffic sent using libpcap (actually
tcpreplay, which is based on libpcap). I'm doing this for a research
project.

i have a simple prio scheduler with a default band 2:

tc qdisc add dev eth0 root handle 1: prio priomap 2 2 2 2 2 2 2 2 2 2
2 2 2 2 2 2

with two filters attached to it:

tc filter add dev eth0 protocol ip parent 1: prio 1 u32 match ip dport
80 0xffff flowid 1:1
tc filter add dev eth0 protocol ip parent 1: prio 2 u32 match ip dport
443 0xffff flowid 1:2

(don't mind the port numbers, they're here just for the example)

When sending actual traffic, the filters work and I see the
appropriate traffic entering the right class. BUT when replaying
captured traffic (with the appropriate port numbers) over eth0 using
tcpreplay, all packets end up in the default band 2 as if the filters
simply refuse to work.

Can anyone suggest a solution?

Thanks!
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
libpcap on vserver Philipp Kraus Linux Networking 0 02-17-2008 01:40 PM
glib and libpcap Ryan Linux Networking 0 08-21-2004 07:42 AM
libpcap unable to link Abhishek Dike Linux Networking 0 07-29-2004 12:59 PM
libpcap for MIPS Tejas Kokje Linux Networking 0 07-16-2004 01:29 AM
libpcap problem (hdr.len vs tcpdump file size)? D Linux Networking 3 10-30-2003 03:35 AM



1 2 3 4 5 6 7 8 9 10 11