Reducing the risk tests conflicting with each other.
ok bluhm@
-# $OpenBSD: Makefile,v 1.32 2019/03/30 06:37:10 yasuoka Exp $
+# $OpenBSD: Makefile,v 1.33 2023/10/19 18:36:40 anton Exp $
ROUTE?= /sbin/route
RDOMAIN?= 5
-${SUDO} ifconfig lo10004 up rdomain ${RDOMAIN} 192.0.2.4/32
.END:
-.for itf in lo10001 lo10002 lo10003 lo10004 vlan99 vether99
+.for itf in lo10001 lo10002 lo10003 lo10004 vlan99 vether99 lo${RDOMAIN}
-${SUDO} ifconfig ${itf} destroy 2>/dev/null || true
.endfor
-# $OpenBSD: Makefile,v 1.10 2020/12/30 21:40:32 kn Exp $
+# $OpenBSD: Makefile,v 1.11 2023/10/19 18:36:40 anton Exp $
# The following ports must be installed:
#
REGRESS_CLEANUP += cleanup
cleanup:
-.for iface in ${PAIR1} ${PAIR2}
+.for iface in ${PAIR1} ${PAIR2} lo${RTABLE}
${SUDO} ifconfig ${iface} destroy 2>/dev/null || true
.endfor
-# $OpenBSD: Makefile,v 1.7 2020/12/17 00:39:42 bluhm Exp $
+# $OpenBSD: Makefile,v 1.8 2023/10/19 18:36:40 anton Exp $
# Copyright (c) 2017 Alexander Bluhm <bluhm@openbsd.org>
# Copyright (c) 2015 Vincent Gross <vgross@openbsd.org>
-${SUDO} /sbin/ifconfig $i$n destroy
.endfor
.endfor
+ -${SUDO} /sbin/ifconfig lo${N1} destroy
+ -${SUDO} /sbin/ifconfig lo${N2} destroy
rm -f stamp-ifconfig
REGRESS_TARGETS += run-ping-1-2
-# $OpenBSD: Makefile,v 1.8 2023/10/11 18:07:56 anton Exp $
+# $OpenBSD: Makefile,v 1.9 2023/10/19 18:36:40 anton Exp $
# Copyright (c) 2018-2020 Alexander Bluhm <bluhm@openbsd.org>
#
REGRESS_CLEANUP += unconfig
unconfig:
- # Destroy interfaces, keep lo as routing domain cannot be destroyed.
.for n in ${NUMS}
-${SUDO} /sbin/ifconfig lo$n rdomain $n
-${SUDO} /sbin/ifconfig lo$n inet 127.0.0.1 delete
-${SUDO} /sbin/ifconfig lo$n inet6 ${SRC_TUNNEL6_$n} delete
-${SUDO} /sbin/ifconfig gif$n4 destroy
-${SUDO} /sbin/ifconfig gif$n6 destroy
+ -${SUDO} /sbin/ifconfig lo$n destroy
.endfor
rm -f stamp-ifconfig
-# $OpenBSD: Makefile,v 1.10 2023/10/11 18:07:56 anton Exp $
+# $OpenBSD: Makefile,v 1.11 2023/10/19 18:36:40 anton Exp $
# Copyright (c) 2017-2020 Alexander Bluhm <bluhm@openbsd.org>
#
-${SUDO} /sbin/ifconfig lo$n rdomain $n
-${SUDO} /sbin/ifconfig lo$n inet 127.0.0.1 delete
-${SUDO} /sbin/ifconfig lo$n inet 127.0.0.$n delete
+ -${SUDO} /sbin/ifconfig lo$n destroy
.endfor
rm -f stamp-ifconfig
-# $OpenBSD: Makefile,v 1.4 2023/10/11 18:07:56 anton Exp $
+# $OpenBSD: Makefile,v 1.5 2023/10/19 18:36:40 anton Exp $
# Copyright (c) 2021 Alexander Bluhm <bluhm@openbsd.org>
#
-${SUDO} /sbin/route -n -T $n delete -inet6 fc00::/48
-${SUDO} /sbin/ifconfig lo$n inet 127.0.0.1 delete
-${SUDO} /sbin/ifconfig lo$n inet6 ::1 delete
+ -${SUDO} /sbin/ifconfig lo$n destroy
.endfor
rm -f stamp-ifconfig
-# $OpenBSD: Makefile,v 1.9 2023/10/11 18:07:56 anton Exp $
+# $OpenBSD: Makefile,v 1.10 2023/10/19 18:36:40 anton Exp $
# Copyright (c) 2021 Alexander Bluhm <bluhm@openbsd.org>
#
.for n in ${NUMS}
-${SUDO} /sbin/ifconfig pflog$n destroy
.endfor
+ -${SUDO} /sbin/ifconfig lo$N destroy
rm -f stamp-ifconfig
addr.py: Makefile
-# $OpenBSD: ifalocal.sh,v 1.1 2015/10/26 08:04:10 vgross Exp $
+# $OpenBSD: ifalocal.sh,v 1.2 2023/10/19 18:36:41 anton Exp $
# Copyright (c) 2015 Vincent Gross <vgross@openbsd.org>
#
ifconfig vether4 destroy
route -T 3 flush
ifconfig vether3 destroy
+ ifconfig lo5 destroy
+ ifconfig lo3 destroy
}
cleanup_and_die()
#!/bin/ksh
-# $OpenBSD: vxlan_1.sh,v 1.1 2016/10/07 02:06:57 yasuoka Exp $
+# $OpenBSD: vxlan_1.sh,v 1.2 2023/10/19 18:36:41 anton Exp $
cleanup()
for if in $ALL_IFS; do
ifconfig $if destroy 2>/dev/null
done
+ for id in $RDOMAINS; do
+ ifconfig lo$id destroy 2>/dev/null
+ done
}
CURDIR=$(cd $(dirname $0); pwd)
#!/bin/ksh
-# $Id: vxlan_2.sh,v 1.3 2022/02/21 00:36:22 dlg Exp $
+# $Id: vxlan_2.sh,v 1.4 2023/10/19 18:36:41 anton Exp $
CAPFILE=$(mktemp -t regress_vxlan.XXXXXXX)
CLEANUP_IFS="bridge$VNETID $CLEANUP_IFS"
+for id in $RDOMAINS; do
+ CLEANUP_IFS="$CLEANUP_IFS lo${id}"
+done
+CLEANUP_IFS="$CLEANUP_IFS lo${VNETID}"
+
STATUS=0
test_inet $RDOMAINS
#!/bin/ksh
-# $OpenBSD: carp_1.sh,v 1.1 2016/10/24 02:52:02 yasuoka Exp $
+# $OpenBSD: carp_1.sh,v 1.2 2023/10/19 18:36:41 anton Exp $
cleanup()
for if in $ALL_IFS; do
ifconfig $if destroy 2>/dev/null
done
+ for i in $RDOMAINS; do
+ ifconfig lo$i destroy 2>/dev/null
+ done
}
CURDIR=$(cd $(dirname $0); pwd)
#!/bin/ksh
-# $OpenBSD: carp_2.sh,v 1.1 2016/10/24 02:52:02 yasuoka Exp $
+# $OpenBSD: carp_2.sh,v 1.2 2023/10/19 18:36:41 anton Exp $
cleanup()
for if in $ALL_IFS; do
ifconfig $if destroy 2>/dev/null
done
+ for i in $RDOMAINS; do
+ ifconfig lo$i destroy 2>/dev/null
+ done
}
CURDIR=$(cd $(dirname $0); pwd)
#!/bin/ksh
-# $OpenBSD: carp_3.sh,v 1.1 2016/10/24 02:52:02 yasuoka Exp $
+# $OpenBSD: carp_3.sh,v 1.2 2023/10/19 18:36:41 anton Exp $
cleanup()
for if in $ALL_IFS; do
ifconfig $if destroy 2>/dev/null
done
+ for i in $RDOMAINS; do
+ ifconfig lo$i destroy 2>/dev/null
+ done
}
CURDIR=$(cd $(dirname $0); pwd)
#!/bin/ksh
-# $OpenBSD: carp_4.sh,v 1.1 2016/10/24 02:52:02 yasuoka Exp $
+# $OpenBSD: carp_4.sh,v 1.2 2023/10/19 18:36:41 anton Exp $
cleanup()
for if in $ALL_IFS; do
ifconfig $if destroy 2>/dev/null
done
+ for i in $RDOMAINS; do
+ ifconfig lo$i destroy 2>/dev/null
+ done
}
CURDIR=$(cd $(dirname $0); pwd)
-# $OpenBSD: Makefile,v 1.2 2019/03/30 06:37:10 yasuoka Exp $
+# $OpenBSD: Makefile,v 1.3 2023/10/19 18:36:41 anton Exp $
ROUTE?= /sbin/route
RDOMAIN?= 5
.BEGIN:
${SUDO} ifconfig vether99 destroy 2>/dev/null || true
+ ${SUDO} ifconfig lo${RDOMAIN} destroy 2>/dev/null || true
.END:
${SUDO} ifconfig vether99 destroy 2>/dev/null || true
+ ${SUDO} ifconfig lo${RDOMAIN} destroy 2>/dev/null || true
.endif
.endif
-# $OpenBSD: Makefile,v 1.3 2017/07/07 23:55:21 bluhm Exp $
+# $OpenBSD: Makefile,v 1.4 2023/10/19 18:36:41 anton Exp $
RDOMAIN?= 5
VETHER_MAC= fe:e1:ba:d2:a3:18
.END:
-${SUDO} ifconfig vether10001 destroy
+ -${SUDO} ifconfig lo${RDOMAIN} destroy
.INTERRUPT:
-${SUDO} ifconfig vether10001 destroy
+ -${SUDO} ifconfig lo${RDOMAIN} destroy
.endif
.endif