summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/net/udpgso.sh
diff options
context:
space:
mode:
authorWillem de Bruijn <willemb@google.com>2018-04-26 13:42:23 -0400
committerDavid S. Miller <davem@davemloft.net>2018-04-26 15:09:52 -0400
commite5b2d91c2d12c197e9863def909a46302b45aa01 (patch)
tree432ae6ac0652ca70b457b9c81ea6cd3c49facb6e /tools/testing/selftests/net/udpgso.sh
parenta160725780e3e086cf936722b0267408f17fceaa (diff)
selftests: udp gso with connected sockets
Connected sockets use path mtu instead of device mtu. Test this path by inserting a route mtu that is lower than the device mtu. Verify that the path mtu for the connection matches this lower number, then run the same test as in the connectionless case. Signed-off-by: Willem de Bruijn <willemb@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/udpgso.sh')
-rwxr-xr-xtools/testing/selftests/net/udpgso.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/udpgso.sh b/tools/testing/selftests/net/udpgso.sh
index 7977b97e060c..7cdf0e7c1dde 100755
--- a/tools/testing/selftests/net/udpgso.sh
+++ b/tools/testing/selftests/net/udpgso.sh
@@ -14,3 +14,10 @@ echo "ipv6 cmsg"
echo "ipv6 setsockopt"
./in_netns.sh ./udpgso -6 -C -s
+
+echo "ipv4 connected"
+./in_netns.sh ./udpgso -4 -c
+
+# blocked on 2nd loopback address
+# echo "ipv6 connected"
+# ./in_netns.sh ./udpgso -6 -c