aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_ip4.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2018-12-09 12:54:51 -0800
committerDave Barach <openvpp@barachs.net>2018-12-10 13:43:38 +0000
commitbe2286b0a4ff0cd31791b86d38a5e72b06bc17c2 (patch)
tree50fde349dfbb9fc8bb32563e1f171899246849f8 /test/test_ip4.py
parent6919b0de476e50307520a1f2389ffe7988f2c5a6 (diff)
IP-local: any IP can appear as the source (VPP-1522)
Change-Id: Ib0d9b533d72c899b77c9a7bd1daa9b4a55b7221c Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/test_ip4.py')
-rw-r--r--test/test_ip4.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/test/test_ip4.py b/test/test_ip4.py
index c13024115e0..54090445dac 100644
--- a/test/test_ip4.py
+++ b/test/test_ip4.py
@@ -1470,6 +1470,25 @@ class TestIPInput(VppTestCase):
# Reset MTU for subsequent tests
self.vapi.sw_interface_set_mtu(self.pg1.sw_if_index, [9000, 0, 0, 0])
+ #
+ # source address 0.0.0.0 and 25.255.255.255 and for-us
+ #
+ p_s0 = (Ether(src=self.pg0.remote_mac,
+ dst=self.pg0.local_mac) /
+ IP(src="0.0.0.0",
+ dst=self.pg0.local_ip4) /
+ ICMP(id=4, seq=4) /
+ Raw(load='\x0a' * 18))
+ rx = self.send_and_assert_no_replies(self.pg0, p_s0 * 17)
+
+ p_s0 = (Ether(src=self.pg0.remote_mac,
+ dst=self.pg0.local_mac) /
+ IP(src="255.255.255.255",
+ dst=self.pg0.local_ip4) /
+ ICMP(id=4, seq=4) /
+ Raw(load='\x0a' * 18))
+ rx = self.send_and_assert_no_replies(self.pg0, p_s0 * 17)
+
class TestIPDirectedBroadcast(VppTestCase):
""" IPv4 Directed Broadcast """