summaryrefslogtreecommitdiff
path: root/sys/net/route.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2015-05-05 09:41:44 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2015-05-05 09:41:44 +0000
commitc7fb0dd5b1759324d0e76c22642148b47c70955d (patch)
tree76c52f20cee07874058774556c6a94a833ced030 /sys/net/route.h
parent27412a7948d584607a6aa02a1ad664b8143136ff (diff)
Flag user specified routes with an AF_LINK gateway as RTF_LLINFO.
This makes ND6 and ARP layers happy since they both check for this flag, but is was redundant to provide route(8)'s "-llinfo" option when adding a l2 route. RTF_LLINFO is clearly redundant for userland tools, so only allow the kernel to set it. ok benno@, claudio@
Diffstat (limited to 'sys/net/route.h')
-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 91637f91676..94be6300ec2 100644
--- a/sys/net/route.h
+++ b/sys/net/route.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.h,v 1.105 2015/02/11 23:34:43 mpi Exp $ */
+/* $OpenBSD: route.h,v 1.106 2015/05/05 09:41:43 mpi Exp $ */
/* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */
/*
@@ -143,7 +143,7 @@ struct rtentry {
/* mask of RTF flags that are allowed to be modified by RTM_CHANGE */
#define RTF_FMASK \
- (RTF_PROTO1 | RTF_PROTO2 | RTF_PROTO3 | RTF_BLACKHOLE | \
+ (RTF_LLINFO | RTF_PROTO1 | RTF_PROTO2 | RTF_PROTO3 | RTF_BLACKHOLE | \
RTF_REJECT | RTF_STATIC | RTF_MPLS | RTF_LOCAL | RTF_BROADCAST)
/* Routing priorities used by the different routing protocols */