summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-07-08 07:29:24 +0000
committermpi <mpi@openbsd.org>2015-07-08 07:29:24 +0000
commit60abb35c78cfc968954a822dd060ae6096521b4d (patch)
tree136f78526c2f36a4cb57080f12d51a5d338cd27e
parentMFREE(9) is dead, long live m_freem(9)! (diff)
downloadwireguard-openbsd-60abb35c78cfc968954a822dd060ae6096521b4d.tar.xz
wireguard-openbsd-60abb35c78cfc968954a822dd060ae6096521b4d.zip
RTF_LOCAL and RTF_BROADCAST must not be settable by userland.
Note that current code is safe because an explicit check exists in route_output(). Pointed out by claudio@ while reviewing another diff.
-rw-r--r--sys/net/route.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/route.h b/sys/net/route.h
index 94be6300ec2..46caaaa91ed 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.h,v 1.106 2015/05/05 09:41:43 mpi Exp $ */
+/* $OpenBSD: route.h,v 1.107 2015/07/08 07:29:24 mpi Exp $ */
/* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */
/*
@@ -144,7 +144,7 @@ struct rtentry {
/* mask of RTF flags that are allowed to be modified by RTM_CHANGE */
#define RTF_FMASK \
(RTF_LLINFO | RTF_PROTO1 | RTF_PROTO2 | RTF_PROTO3 | RTF_BLACKHOLE | \
- RTF_REJECT | RTF_STATIC | RTF_MPLS | RTF_LOCAL | RTF_BROADCAST)
+ RTF_REJECT | RTF_STATIC | RTF_MPLS)
/* Routing priorities used by the different routing protocols */
#define RTP_NONE 0 /* unset priority use sane default */