MCPcopy Create free account
hub / github.com/FDio/vpp / run_negative_conn_test

Method run_negative_conn_test

test/test_container.py:52–61  ·  view source on GitHub ↗

Packets with local spoofed address

(self, af, acl_side)

Source from the content-addressed store, hash-verified

50 conn1.send_through(1)
51
52 def run_negative_conn_test(self, af, acl_side):
53 """Packets with local spoofed address"""
54 conn1 = Conn(self, self.pg0, self.pg1, af, UDP, 42001, 4242)
55 try:
56 p2 = conn1.send_through(0).command()
57 except:
58 # If we asserted while waiting, it's good.
59 # the conn should have timed out.
60 p2 = None
61 self.assert_equal(p2, None, ": packet should have been dropped")
62
63 def test_0010_basic_conn_test(self):
64 """IPv4 basic connectivity test"""

Callers 4

test_0410_spoof_testMethod · 0.95
test_0411_spoof_testMethod · 0.95

Calls 4

send_throughMethod · 0.80
ConnClass · 0.70
commandMethod · 0.45
assert_equalMethod · 0.45

Tested by

no test coverage detected