Acked-by: Daniele Di Proietto <[email protected]> On 07/11/2015 11:59, "Joe Stringer" <[email protected]> wrote:
>Netcat is different on each platform I tried (Debian, Ubuntu, RHEL), >so rather than handling version differences it's better to just do the >same test with some hardcoded packets. > >Signed-off-by: Joe Stringer <[email protected]> >--- > tests/system-traffic.at | 19 +++++++++++++++---- > 1 file changed, 15 insertions(+), 4 deletions(-) > >diff --git a/tests/system-traffic.at b/tests/system-traffic.at >index 3b2de83f4c0d..0950b840cd15 100644 >--- a/tests/system-traffic.at >+++ b/tests/system-traffic.at >@@ -840,16 +840,27 @@ >priority=100,in_port=2,icmp,ct_state=+trk+rel,ct_mark=1,action=1 > > AT_CHECK([ovs-ofctl add-flows br0 flows.txt]) > >-dnl UDP packets from ns0->ns1 should solicit "destination unreachable" >response. >-dnl We pass "-q 1" here to handle openbsd-style nc that can't quit >immediately. >-NS_CHECK_EXEC([at_ns0], [bash -c "echo a | nc -q 1 -u 10.1.1.2 10000"]) >+dnl If we simulate a UDP request to a port that isn't serving any real >traffic, >+dnl then the destination responds with an ICMP "destination unreachable" >+dnl message, it should be marked as "related". >+AT_CHECK([ovs-ofctl -O OpenFlow13 packet-out br0 1 resubmit\(,0\) 'dnl >+0000 0000 0000 0000 0000 0000 0800 4500 dnl >+001e bb85 4000 4011 6945 0a01 0101 0a01 dnl >+0102 839c 1388 000a f1a6 610a']) >+ >+AT_CHECK([ovs-ofctl -O OpenFlow13 packet-out br0 2 resubmit\(,0\) 'dnl >+0000 0000 0000 0000 0000 0000 0800 45c0 dnl >+003a 411e 0000 4001 22e1 0a01 0102 0a01 dnl >+0101 0303 131d 0000 0000 dnl >+4500 001e bb85 4000 4011 6945 0a01 0101 dnl >+0a01 0102 839c 1388 000a f1a6 610a']) > > AT_CHECK([ovs-appctl revalidator/purge], [0]) > AT_CHECK([ovs-ofctl dump-flows br0 | ofctl_strip | sort | grep -v drop], >[0], [dnl > n_packets=1, n_bytes=44, priority=100,udp,in_port=1 >actions=ct(commit,exec(load:0x1->NXM_NX_CT_MARK[[]])),output:2 > n_packets=1, n_bytes=72, >priority=100,ct_state=+rel+trk,ct_mark=0x1,icmp,in_port=2 actions=output:1 > n_packets=1, n_bytes=72, priority=100,ct_state=-trk,icmp,in_port=2 >actions=ct(table=0) >- n_packets=2, n_bytes=84, priority=10,arp actions=NORMAL >+ priority=10,arp actions=NORMAL > NXST_FLOW reply: > ]) > >-- >2.1.4 > >_______________________________________________ >dev mailing list >[email protected] >https://urldefense.proofpoint.com/v2/url?u=http-3A__openvswitch.org_mailma >n_listinfo_dev&d=BQIGaQ&c=Sqcl0Ez6M0X8aeM67LKIiDJAXVeAw-YihVMNtXt-uEs&r=Sm >B5nZacmXNq0gKCC1s_Cw5yUNjxgD4v5kJqZ2uWLlE&m=nptv_snd6V6uBFGDjF3FbhJKpHSlPX >W2gJZG_LJiJ3g&s=A4UfunDa3n4o0BoKhunmR_TQ0GbdXSplae9cHlGZxcE&e= _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
