FreeBSD Bugzilla – Attachment 230926 Details for
Bug 193280
CARP IPv6 NDP issue
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
kyua testcase to demonstrate the problem
nd6_ns_source_mac_test.patch (text/plain), 2.29 KB, created by
Thomas Steen Rasmussen / Tykling
on 2022-01-11 20:14:40 UTC
(
hide
)
Description:
kyua testcase to demonstrate the problem
Filename:
MIME Type:
Creator:
Thomas Steen Rasmussen / Tykling
Created:
2022-01-11 20:14:40 UTC
Size:
2.29 KB
patch
obsolete
>--- /home/tykling/carp 2022-01-11 17:05:24.346961000 +0000 >+++ sys/netinet/carp 2022-01-11 19:39:10.446857000 +0000 >@@ -196,9 +196,71 @@ > vnet_cleanup > } > >+ >+ >+atf_test_case "nd6_ns_source_mac" "cleanup" >+nd6_ns_source_mac_head() >+{ >+ atf_set descr 'CARP ndp neighbor solicitation MAC source test (IPv6)' >+ atf_set require.user root >+} >+ >+nd6_ns_source_mac_body() >+{ >+ carp_init >+ >+ bridge=$(vnet_mkbridge) >+ epair_one=$(vnet_mkepair) >+ epair_two=$(vnet_mkepair) >+ >+ vnet_mkjail carp_ndp_v6_one ${bridge} ${epair_one}a ${epair_two}a >+ vnet_mkjail carp_ndp_v6_two ${epair_one}b >+ vnet_mkjail carp_ndp_v6_three ${epair_two}b >+ >+ jexec carp_ndp_v6_one ifconfig ${bridge} inet6 2001:db8::0:4/64 up \ >+ no_dad >+ jexec carp_ndp_v6_one ifconfig ${bridge} addm ${epair_one}a \ >+ addm ${epair_two}a >+ jexec carp_ndp_v6_one ifconfig ${epair_one}a up >+ jexec carp_ndp_v6_one ifconfig ${epair_two}a up >+ >+ jexec carp_ndp_v6_two ifconfig ${epair_one}b inet6 \ >+ 2001:db8::1:2/64 up no_dad >+ jexec carp_ndp_v6_two ifconfig ${epair_one}b inet6 add vhid 1 \ >+ advskew 0 2001:db8::0:1/64 >+ >+ jexec carp_ndp_v6_three ifconfig ${epair_two}b inet6 2001:db8::1:3/64 up no_dad >+ jexec carp_ndp_v6_three ifconfig ${epair_two}b inet6 add vhid 1 \ >+ advskew 100 2001:db8::0:1/64 >+ >+ wait_for_carp carp_ndp_v6_two ${epair_one}b \ >+ carp_ndp_v6_three ${epair_two}b >+ >+ # carp_ndp_v6_two is MASTER >+ >+ # trigger a NS from the virtual IP from the BACKUP >+ atf_check -s exit:2 -o ignore jexec carp_ndp_v6_three \ >+ ping -6 -c 3 -S 2001:db8::0:1 2001:db8::0:4 >+ >+ # trigger a NS from the virtual IP from the MASTER, >+ # this ping should work >+ atf_check -s exit:0 -o ignore jexec carp_ndp_v6_two \ >+ ping -6 -c 3 -S 2001:db8::0:1 2001:db8::0:4 >+ >+ # ndp entry should be for the virtual mac >+ atf_check -o match:'2001:db8::1 00:00:5e:00:01:01' jexec carp_ndp_v6_one ndp -an >+} >+ >+nd6_ns_source_mac_cleanup() >+{ >+ vnet_cleanup >+} >+ >+ > atf_init_test_cases() > { > atf_add_test_case "basic_v4" > atf_add_test_case "basic_v6" > atf_add_test_case "negative_demotion" >+ atf_add_test_case "nd6_ns_source_mac" > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 193280
:
146727
| 230926 |
230927