system-common-macros: Add macros to create IPv6 tunnels
Add simple macros to wrap existing tunnel create macros, but lowers the
MTU enough to allow IPv6 underlay.
@@ -178,6 +178,16 @@ m4_define([ADD_OVS_TUNNEL],
]
)
+# ADD_OVS_TUNNEL6([type], [bridge], [port], [remote-addr], [overlay-addr])
+#
+# Same as ADD_OVS_TUNNEL, but drops MTU enough for the IPv6 underlay.
+#
+m4_define([ADD_OVS_TUNNEL6],
+ [ADD_OVS_TUNNEL([$1], [$2], [$3], [$4], [$5])
+ AT_CHECK([ip link set dev $2 mtu 1430])
+ ]
+)
+
# ADD_NATIVE_TUNNEL([type], [port], [namespace], [remote-addr], [overlay-addr],
# [type-args], [link-args])
#
@@ -199,6 +209,17 @@ m4_define([ADD_NATIVE_TUNNEL],
]
)
+# ADD_NATIVE_TUNNEL6([type], [port], [namespace], [remote-addr], [overlay-addr],
+# [type-args], [link-args])
+#
+# Same as ADD_NATIVE_TUNNEL, but drops MTU enough for the IPv6 underlay.
+#
+m4_define([ADD_NATIVE_TUNNEL6],
+ [ADD_NATIVE_TUNNEL([$1], [$2], [$3], [$4], [$5], [$6], [$7])
+ NS_CHECK_EXEC([$3], [ip link set dev $2 mtu 1430])
+ ]
+)
+
# FORMAT_PING([])
#
# Strip variant pieces from ping output so the output can be reliably compared.
