summaryrefslogtreecommitdiff
path: root/usr.sbin/rtadvd
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2013-03-17 00:38:30 +0000
committerBrad Smith <brad@cvs.openbsd.org>2013-03-17 00:38:30 +0000
commit7b1c0527598069ddf47862ffb16adf6ddc5f82c9 (patch)
tree52440a04a38cd8771c6ff9eb3205d50cff84f525 /usr.sbin/rtadvd
parent22f738d90ca4a5de67d97685c6a71f972d6d3661 (diff)
Add the router preference defines to the icmp6.h header and remove the
defines that were part of rtadvd's code. ok bluhm@
Diffstat (limited to 'usr.sbin/rtadvd')
-rw-r--r--usr.sbin/rtadvd/config.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/usr.sbin/rtadvd/config.c b/usr.sbin/rtadvd/config.c
index 0424d946cee..3c72a6db83b 100644
--- a/usr.sbin/rtadvd/config.c
+++ b/usr.sbin/rtadvd/config.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.c,v 1.30 2012/09/05 05:52:10 deraadt Exp $ */
+/* $OpenBSD: config.c,v 1.31 2013/03/17 00:38:29 brad Exp $ */
/* $KAME: config.c,v 1.62 2002/05/29 10:13:10 itojun Exp $ */
/*
@@ -166,10 +166,6 @@ getconfig(intface)
MAYHAVE(val, "raflags", 0);
tmp->managedflg = val & ND_RA_FLAG_MANAGED;
tmp->otherflg = val & ND_RA_FLAG_OTHER;
-#ifndef ND_RA_FLAG_RTPREF_MASK
-#define ND_RA_FLAG_RTPREF_MASK 0x18 /* 00011000 */
-#define ND_RA_FLAG_RTPREF_RSV 0x10 /* 00010000 */
-#endif
tmp->rtpref = val & ND_RA_FLAG_RTPREF_MASK;
if (tmp->rtpref == ND_RA_FLAG_RTPREF_RSV) {
log_warnx("invalid router preference (%02x) on %s",