summaryrefslogtreecommitdiff
path: root/usr.sbin/bgpd
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-05-19 13:15:09 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-05-19 13:15:09 +0000
commit269e7a5bc8a6cb358f616fc796adceae5649f3f9 (patch)
treea179fce25ab51e337921ba04bd1c77af71c24cf3 /usr.sbin/bgpd
parent4873bcf96755dfa1c4eae8ac595797d3f68321d2 (diff)
When installing MPLS VPN routes set the RTF_MPLS bit since those routes
have MPLS information connected to them and the kernel requires the flag now. OK michele@
Diffstat (limited to 'usr.sbin/bgpd')
-rw-r--r--usr.sbin/bgpd/kroute.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/bgpd/kroute.c b/usr.sbin/bgpd/kroute.c
index 99ac8fbc2c5..40591898943 100644
--- a/usr.sbin/bgpd/kroute.c
+++ b/usr.sbin/bgpd/kroute.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kroute.c,v 1.180 2010/05/18 12:21:33 claudio Exp $ */
+/* $OpenBSD: kroute.c,v 1.181 2010/05/19 13:15:08 claudio Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -2627,6 +2627,7 @@ send_rtmsg(int fd, int action, struct ktable *kt, struct kroute *kroute)
mpls.smpls_family = AF_MPLS;
mpls.smpls_label = kroute->mplslabel;
/* adjust header */
+ hdr.rtm_flags |= RTF_MPLS;
hdr.rtm_mpls = MPLS_OP_PUSH;
hdr.rtm_addrs |= RTA_SRC;
hdr.rtm_msglen += sizeof(mpls);