Re: [iproute2] tc action mirred question

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: jamal
Date: Wednesday, September 9, 2009 - 3:11 pm

On Wed, 2009-09-09 at 06:12 -0700, Xiaofei Wu wrote:



Could it be related to the wireless driver? Here's something i tried
on my laptop
---
dogo:/home/hadi# tc qdisc add dev lo handle 1: root prio

dogo:/home/hadi# tc filter add dev lo parent 1: protocol ip prio 10 u32
match ip src 127.0.0.1/24 flowid 1:16 action pedit munge offset -14 u16
set 0x0023 munge offset -12 u32 set 0xcdafecda munge offset -8 u32 set
0x0023cdaf munge offset -4 u32 set 0xd0740800 pipe action mirred egress
mirror dev eth0
---

On window1: tcpdump -n -i eth0
on window2:  ping 127.0.0.2

On window1 i see:
----
dogo:/home/hadi# tcpdump -n -i eth0 -e
tcpdump: verbose output suppressed, use -v or -vv for full protocol
decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes
18:05:23.184602 00:23:cd:af:d0:74 > 00:23:cd:af:ec:da, ethertype IPv4
(0x0800), length 98: 127.0.0.2 > 127.0.0.2: ICMP echo request, id 53329,
seq 1, length 64
18:05:23.558949 00:06:dc:44:4b:ed > ff:ff:ff:ff:ff:ff, ethertype ARP
(0x0806), length 60: arp who-has 10.0.0.34 tell 10.0.0.33
18:05:24.199184 00:23:cd:af:d0:74 > 00:23:cd:af:ec:da, ethertype IPv4
(0x0800), length 98: 127.0.0.2 > 127.0.0.2: ICMP echo request, id 53329,
seq 2, length 64
--------

Try the exact example, if it doesnt work then you have other problems;

cheers,
jamal


--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [iproute2] tc action mirred question, Xiaofei Wu, (Mon Sep 7, 9:05 am)
Re: [iproute2] tc action mirred question, jamal, (Mon Sep 7, 7:16 pm)
Re: [iproute2] tc action mirred question, thomas yang, (Tue Sep 8, 6:50 am)
Re: [iproute2] tc action mirred question, jamal, (Tue Sep 8, 7:10 am)
Re: [iproute2] tc action mirred question, thomas yang, (Tue Sep 8, 7:35 am)
Re: [iproute2] tc action mirred question, Xiaofei Wu, (Wed Sep 9, 6:12 am)
Re: [iproute2] tc action mirred question, jamal, (Wed Sep 9, 3:11 pm)
Re: [iproute2] tc action mirred question, Xiaofei Wu, (Wed Sep 9, 11:06 pm)
Re: [iproute2] tc action mirred question, jamal, (Fri Sep 11, 5:25 am)
Re: [iproute2] tc action mirred question, Xiaofei Wu, (Fri Sep 11, 11:45 am)
Re: [iproute2] tc action mirred question, jamal, (Fri Sep 11, 2:28 pm)
Re: [iproute2] tc action mirred question, Xiaofei Wu, (Sat Sep 12, 9:01 am)
Re: [iproute2] tc action mirred question, jamal, (Sat Sep 12, 2:49 pm)
Re: [iproute2] tc action mirred question, Xiaofei Wu, (Mon Sep 14, 6:44 am)
Re: [iproute2] tc action mirred question, jamal, (Wed Sep 16, 5:28 am)
Re: [iproute2] tc action mirred question, Xiaofei Wu, (Sun Sep 20, 2:58 am)
Re: [iproute2] tc action mirred question, jamal, (Sun Sep 20, 6:33 am)