diff options
author | michele <michele@openbsd.org> | 2009-09-24 12:30:36 +0000 |
---|---|---|
committer | michele <michele@openbsd.org> | 2009-09-24 12:30:36 +0000 |
commit | 42e28c8d2a8fdc062016c88bde7fc4c5e94f4239 (patch) | |
tree | da40d831950cba7116e9d667b5ec04b6864d6999 /usr.sbin/ripd/kroute.c | |
parent | Update some more tests for new pf. (diff) | |
download | wireguard-openbsd-42e28c8d2a8fdc062016c88bde7fc4c5e94f4239.tar.xz wireguard-openbsd-42e28c8d2a8fdc062016c88bde7fc4c5e94f4239.zip |
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.c | 5 |
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; |