diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2014-02-12 13:01:51 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2014-02-12 13:01:51 +0000 |
commit | dfda1dc5434c903ebbfdaa8386ab1411e637501d (patch) | |
tree | ecc0764a12da20ffa75b4318a71dbe05b3fdf70c /sys | |
parent | f6c3ff06903e8290c8848392a38db2f1ca7b323c (diff) |
Add rtlabel to rt_newaddrmsg, From: Florian Riehm <mail at friehm dot de>
ok bluhm claudio
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/rtsock.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/net/rtsock.c b/sys/net/rtsock.c index f1410ee6637..bc0a2f3f642 100644 --- a/sys/net/rtsock.c +++ b/sys/net/rtsock.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rtsock.c,v 1.137 2014/01/22 06:28:09 claudio Exp $ */ +/* $OpenBSD: rtsock.c,v 1.138 2014/02/12 13:01:50 henning Exp $ */ /* $NetBSD: rtsock.c,v 1.18 1996/03/29 00:32:10 cgd Exp $ */ /* @@ -1193,12 +1193,15 @@ rt_newaddrmsg(int cmd, struct ifaddr *ifa, int error, struct rtentry *rt) if ((cmd == RTM_ADD && pass == 2) || (cmd == RTM_DELETE && pass == 1)) { struct rt_msghdr *rtm; + struct sockaddr_rtlabel sa_rl; if (rt == 0) continue; info.rti_info[RTAX_NETMASK] = rt_mask(rt); info.rti_info[RTAX_DST] = sa = rt_key(rt); info.rti_info[RTAX_GATEWAY] = rt->rt_gateway; + info.rti_info[RTAX_LABEL] = + rtlabel_id2sa(rt->rt_labelid, &sa_rl); if ((m = rt_msg1(cmd, &info)) == NULL) continue; rtm = mtod(m, struct rt_msghdr *); |