|
Lines 451-462
Link Here
|
| 451 |
} |
451 |
} |
| 452 |
slaac_on_nondefault_fib6_body() |
452 |
slaac_on_nondefault_fib6_body() |
| 453 |
{ |
453 |
{ |
| 454 |
atf_skip "BUG217871 SLAAC on a newly created epair sometimes fails to add routes" |
454 |
#atf_skip "BUG217871 SLAAC on a newly created epair sometimes fails to add routes" |
| 455 |
# Configure the epair interfaces to use nonrouteable RFC3849 |
455 |
# Configure the epair interfaces to use nonrouteable RFC3849 |
| 456 |
# addresses and non-default FIBs |
456 |
# addresses and non-default FIBs |
| 457 |
ADDR="2001:db8::2" |
457 |
PREFIX="2001:db8:$(printf "%x" `jot -r 1 0 65535`):$(printf "%x" `jot -r 1 0 65535`)" |
| 458 |
GATEWAY="2001:db8::1" |
458 |
ADDR="$PREFIX::2" |
| 459 |
SUBNET="2001:db8:" |
459 |
GATEWAY="$PREFIX::1" |
|
|
460 |
SUBNET="$PREFIX:" |
| 460 |
MASK="64" |
461 |
MASK="64" |
| 461 |
|
462 |
|
| 462 |
# Check system configuration |
463 |
# Check system configuration |
|
Lines 474-479
Link Here
|
| 474 |
sysctl net.inet6.ip6.rfc6204w3=1 |
475 |
sysctl net.inet6.ip6.rfc6204w3=1 |
| 475 |
|
476 |
|
| 476 |
# Configure epair interfaces |
477 |
# Configure epair interfaces |
|
|
478 |
echo "PREFIX is $PREFIX" |
| 477 |
get_epair |
479 |
get_epair |
| 478 |
setup_iface "$EPAIRA" "$FIB0" inet6 ${ADDR} ${MASK} |
480 |
setup_iface "$EPAIRA" "$FIB0" inet6 ${ADDR} ${MASK} |
| 479 |
echo setfib $FIB1 ifconfig "$EPAIRB" inet6 -ifdisabled accept_rtadv fib $FIB1 up |
481 |
echo setfib $FIB1 ifconfig "$EPAIRB" inet6 -ifdisabled accept_rtadv fib $FIB1 up |