summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2010-03-23 15:03:26 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2010-03-23 15:03:26 +0000
commit20657683b1b1d28c9c27fe6f2f3bc0d4bbb80393 (patch)
tree06e82d33d20c5def6a572e05524d16c1c72fca85 /sys/net
parente06673c1aacda501987dbaa94ca0d3e9cd5defb6 (diff)
Set rtm_mpls on RTM_GET so that we get the correct options on mpls routes.
OK michele@
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/rtsock.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c
index a1b42028345..6d34e851fe7 100644
--- a/sys/net/rtsock.c
+++ b/sys/net/rtsock.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsock.c,v 1.97 2010/02/09 16:34:57 claudio Exp $ */
+/* $OpenBSD: rtsock.c,v 1.98 2010/03/23 15:03:25 claudio Exp $ */
/* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */
/*
@@ -570,6 +570,7 @@ report:
(struct sockaddr *)&sa_mpls;
info.rti_mpls = ((struct rt_mpls *)
rt->rt_llinfo)->mpls_operation;
+ rtm->rtm_mpls = info.rti_mpls;
}
#endif
ifpaddr = 0;