Re: [iproute2] tc action mirred question

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Xiaofei Wu
Date: Friday, September 11, 2009 - 11:45 am

I run your example ( mirror  lo -> eth0) on Sep. 10th, got almost the same result(in my last email) as yours.
I think interface 'lo' is very special.

When I do the following (eth0 -> lo), the results are very strange.
1> run 'tc qdisc add dev eth0 handle 1: root prio'

2>  tc filter add dev eth0 parent 1: protocol ip prio 10 u32 \
match ip src 192.168.1.0/32 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 lo

window1  run ' ping 192.168.1.1'
window2  'tcpdump -i lo -e', I can not capture any packets.

mirror  lo -> eth0 ok, eth0 -> lo  can not work ???

2'> change 'action mirred egress mirror dev lo' to 'action mirred egress mirror dev eth1' ,
'tcpdump -i eth1 -e'    also capture nothing.
Does this mean something wrong with ' action pedit ...' ?   ("offset must be on 32 bit boundaries"?)

 


How to do this. Could you show me the example commands?   Thank you.


regards,
wu



      

--
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)