summaryrefslogtreecommitdiff
path: root/usr.sbin/ripd/kroute.c
diff options
context:
space:
mode:
authorMichele Marchetto <michele@cvs.openbsd.org>2009-09-24 12:30:37 +0000
committerMichele Marchetto <michele@cvs.openbsd.org>2009-09-24 12:30:37 +0000
commit61cb204ee2a8390925d6a7361c9a7719156bf6e9 (patch)
tree6d85d83802ee12a9ef5da63e470beb8f42f87a65 /usr.sbin/ripd/kroute.c
parent260fad8ac06a67bb955f627251f2b6836516ddf8 (diff)
Priorities are now handled in the kernel so:
- RTF_PROTO3 is useless - MPLS routes don't need special treatment anymore, so don't track them at all ok claudio@
Diffstat (limited to 'usr.sbin/ripd/kroute.c')
-rw-r--r--usr.sbin/ripd/kroute.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/ripd/kroute.c b/usr.sbin/ripd/kroute.c
index f063a952244..9342f376ac2 100644
--- a/usr.sbin/ripd/kroute.c
+++ b/usr.sbin/ripd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.18 2009/09/18 16:17:02 michele Exp $ */
+/* $OpenBSD: kroute.c,v 1.19 2009/09/24 12:30:36 michele Exp $ */
/*
* Copyright (c) 2004 Esben Norby <norby@openbsd.org>
@@ -750,7 +750,6 @@ send_rtmsg(int fd, int action, struct kroute *kroute)
bzero(&hdr, sizeof(hdr));
hdr.rtm_version = RTM_VERSION;
hdr.rtm_type = action;
- hdr.rtm_flags = RTF_PROTO3;
hdr.rtm_priority = RTP_RIP;
if (action == RTM_CHANGE)
hdr.rtm_fmask = RTF_REJECT|RTF_BLACKHOLE;
@@ -1118,8 +1117,6 @@ dispatch_rtmsg(void)
flags |= F_REJECT;
if (rtm->rtm_flags & RTF_DYNAMIC)
flags |= F_DYNAMIC;
- if (rtm->rtm_flags & RTF_MPLS)
- flags |= F_LDPD_INSERTED;
break;
default:
continue;