diff options
author | Lorenzo Colitti <lorenzo@google.com> | 2014-05-15 15:42:08 -0700 |
---|---|---|
committer | Lorenzo Colitti <lorenzo@google.com> | 2015-02-02 17:47:29 +0900 |
commit | de6b710f4f7f1e1c21e44029e30843d5ba23a033 (patch) | |
tree | 4174abe371a0efebb84fa05de48be0104ed699fb /tests | |
parent | a207bc0c270c3f6d34ad69bb10c7e935295712e3 (diff) | |
download | extras-de6b710f4f7f1e1c21e44029e30843d5ba23a033.tar.gz |
Also check the MTU via netlink.
Change-Id: Ic12ab3046d1eeb5053c6d2e2693be818f6252c83
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/net_test/mark_test.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tests/net_test/mark_test.py b/tests/net_test/mark_test.py index 41909b60..cc6e4fb8 100755 --- a/tests/net_test/mark_test.py +++ b/tests/net_test/mark_test.py @@ -1491,6 +1491,15 @@ class PMTUTest(InboundMarkingTest): s2.connect((dstaddr, 1234)) self.assertEquals(1280, self.GetSocketMTU(version, s2)) + # Also check the MTU reported by ip route get, this time using the oif. + routes = self.iproute.GetRoutes(dstaddr, self.ifindices[netid], 0, None) + self.assertTrue(routes) + route = routes[0] + rtmsg, attributes = route + self.assertEquals(iproute.RTN_UNICAST, rtmsg.type) + metrics = attributes[iproute.RTA_METRICS] + self.assertEquals(metrics[iproute.RTAX_MTU], 1280) + def testIPv4BasicPMTU(self): self.CheckPMTU(4, True, ["mark", "oif"]) self.CheckPMTU(4, False, ["mark", "oif"]) @@ -1505,7 +1514,7 @@ class PMTUTest(InboundMarkingTest): self.CheckPMTU(4, False, ["uid"]) @unittest.skipUnless(HAVE_EXPERIMENTAL_UID_ROUTING, "no UID routing") - def testIPv6ConnectedSocketUIDPMTU(self): + def testIPv6UIDPMTU(self): self.CheckPMTU(6, True, ["uid"]) self.CheckPMTU(6, False, ["uid"]) |