From b117055a576a7e070802ffb7f8a8a23040be4e3f Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Thu, 1 Sep 2016 09:57:46 +0000 Subject: Test that RTF_LOCAL routes cannot be deleted from userland. --- regress/sbin/route/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'regress') diff --git a/regress/sbin/route/Makefile b/regress/sbin/route/Makefile index b3ff38e90c6..b3e70aff6e1 100644 --- a/regress/sbin/route/Makefile +++ b/regress/sbin/route/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.13 2016/08/31 11:00:15 claudio Exp $ +# $OpenBSD: Makefile,v 1.14 2016/09/01 09:57:45 mpi Exp $ RDOMAIN?= 5 @@ -321,6 +321,12 @@ rttest${n}: ${RCMD} show -inet 2>&1 | \ diff -u ${.CURDIR}/${.TARGET}.ok /dev/stdin +# Can't delete RTF_LOCAL route +n= 28 +RTTEST_TARGETS+:=rttest${n} +rttest${n}: + ${RCMD} delete 192.0.2.1 192.0.2.1 && exit 1 || exit 0 + REGRESS_TARGETS=netmask ${RTTEST_TARGETS} REGRESS_ROOT_TARGETS=${REGRESS_TARGETS} .PHONY: ${REGRESS_TARGETS} -- cgit v1.2.3