diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2013-05-22 21:00:37 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2013-05-22 21:00:37 +0000 |
commit | 0beb46f673ea74613c3bf4aab3b5b3ceb9d6439e (patch) | |
tree | 84a179ae52da14cd32b475747cd154f044d38046 | |
parent | ee994185e77789e2b8339717fbc81703f538f513 (diff) |
Set the correct route priority in send_rt6msg, as done for send_rtmsg.
Fixes v6 routes being added to the kernel as RTP_DEFAULT. ok florian@ benno@
-rw-r--r-- | usr.sbin/bgpd/kroute.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c index aac9bea8b5b..d2426ccfa1f 100644 --- a/usr.sbin/bgpd/kroute.c +++ b/usr.sbin/bgpd/kroute.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kroute.c,v 1.194 2013/05/22 20:39:12 sthen Exp $ */ +/* $OpenBSD: kroute.c,v 1.195 2013/05/22 21:00:36 sthen Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -2627,6 +2627,7 @@ send_rt6msg(int fd, int action, struct ktable *kt, struct kroute6 *kroute) hdr.rtm_version = RTM_VERSION; hdr.rtm_type = action; hdr.rtm_tableid = kt->rtableid; + hdr.rtm_priority = RTP_BGP; if (kroute->flags & F_BLACKHOLE) hdr.rtm_flags |= RTF_BLACKHOLE; if (kroute->flags & F_REJECT) |