# IPv6: fd92:7065:b8e:ffff::{1..11} ULA
# fd92:7065:b8e:99ff::{1..2}
# fd92:7065:b8e:ff::{1..2}
+# fd92:7065:b8e:fffe::10.53.0.4
#
# We also set the MTU on the 1500 bytes to match the default MTU on physical
# interfaces, so we can properly test the cases with packets bigger than
;;
*-*-linux*)
if [ "$use_ip" ]; then
- ip address add $a/24 dev lo:$int
- ip link set dev lo:$int mtu 1500
+ [ "$a" ] && ip address add $a/24 dev lo:$int
[ "$aaaa" ] && ip address add $aaaa/64 dev lo
+ ip link set dev lo:$int mtu 1500
else
ifconfig lo:$int $a up netmask 255.255.255.0 mtu 1500
[ "$aaaa" ] && ifconfig lo inet6 add $aaaa/64
max=11
case $1 in
start|up|stop|down)
- for i in $(sequence 0 2)
+ for i in $(sequence 0 3)
do
case $i in
0) ipv6="ff" ;;
esac
for ns in $(sequence 1 $max)
do
- [ $i -gt 0 -a $ns -gt 2 ] && break
int=$((i * max + ns))
- a=10.53.$i.$ns
- aaaa=fd92:7065:b8e:${ipv6}ff::$ns
+ case $i in
+ 0|1|2)
+ [ $i -gt 0 -a $ns -gt 3 ] && break
+ a=10.53.$i.$ns
+ aaaa=fd92:7065:b8e:${ipv6}ff::$ns
+ ;;
+ 3)
+ [ $ns -ne 4 ] && continue
+ a=
+ aaaa=fd92:7065:b8e:fffe::10.53.0.$ns
+ ;;
+ esac
case "$1" in
start|up) up;;
stop|down) down;;