ipv6 tests: cleanup

Remove mentions of fragmentation tests from extension header test.
Remove setting an MTU > IF_MAXMTU from the test cases to avoid warnings;
this was only possible in a local research tree.

MFC after:		2 weeks
Sponsored by:		Netflix
This commit is contained in:
Bjoern A. Zeeb 2019-11-06 14:30:56 +00:00
parent 51ee1719f9
commit f21d32079f
2 changed files with 6 additions and 6 deletions

View File

@ -31,7 +31,7 @@
atf_test_case "exthdr" "cleanup"
exthdr_head() {
atf_set descr 'Test IPv6 fragmentation code'
atf_set descr 'Test IPv6 extension header code paths'
atf_set require.user root
atf_set require.progs scapy
}
@ -59,12 +59,12 @@ exthdr_body() {
ip6b="2001:db8:6666:0000:${yl}:${id}:2:${xl}"
epair=$(vnet_mkepair)
ifconfig ${epair}a mtu 131071 up
ifconfig ${epair}a up
ifconfig ${epair}a inet6 ${ip6a}/64
jname="v6t-${id}-${yl}-${xl}"
vnet_mkjail ${jname} ${epair}b
jexec ${jname} ifconfig ${epair}b mtu 131071 up
jexec ${jname} ifconfig ${epair}b up
jexec ${jname} ifconfig ${epair}b inet6 ${ip6b}/64
# Let IPv6 ND do its thing.
@ -75,7 +75,7 @@ exthdr_body() {
# Clear statistics.
jexec ${jname} netstat -z -s > /dev/null
# Run fragment tests.
# Run extension header tests.
pyname=$(atf_get ident)
pyname=${pyname%*_[0-9]}

View File

@ -54,12 +54,12 @@ frag6_body()
ip6b="2001:db8:6666:6666:${yl}:${id}:2:${xl}"
epair=$(vnet_mkepair)
ifconfig ${epair}a mtu 131071 up
ifconfig ${epair}a up
ifconfig ${epair}a inet6 ${ip6a}/64
jname="v6t-${id}-${yl}-${xl}"
vnet_mkjail ${jname} ${epair}b
jexec ${jname} ifconfig ${epair}b mtu 131071 up
jexec ${jname} ifconfig ${epair}b up
jexec ${jname} ifconfig ${epair}b inet6 ${ip6b}/64
# Let IPv6 ND do its thing.