diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2019-02-13 23:47:44 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2019-02-13 23:47:44 +0000 |
commit | f4b6c16afb0edf8ec9850cea359a9e430a610635 (patch) | |
tree | bbddfaade2c28e0eb1b99cc127fe967a02f01440 /sys/net/route.h | |
parent | 6441905bfeadbf0368fbc36fe6e83edbb69f00cc (diff) |
change rt_ifa_add and rt_ifa_del so they take an rdomain argument.
this allows mpls interfaces (mpe, mpw) to pass the rdomain they
wish the local label to be in, rather than have it implicitly forced
to 0 by these functions. right now they'll pass 0, but it will soon
be possible to have them rx packets in other rdomains.
previously the functions used ifp->if_rdomain for the rdomain.
everything other than mpls still passes ifp->if_rdomain.
ok mpi@
Diffstat (limited to 'sys/net/route.h')
-rw-r--r-- | sys/net/route.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/route.h b/sys/net/route.h index b145964dc55..41aa5a1ace7 100644 --- a/sys/net/route.h +++ b/sys/net/route.h @@ -1,4 +1,4 @@ -/* $OpenBSD: route.h,v 1.173 2018/11/12 16:36:54 krw Exp $ */ +/* $OpenBSD: route.h,v 1.174 2019/02/13 23:47:42 dlg Exp $ */ /* $NetBSD: route.h,v 1.9 1996/02/13 22:00:49 christos Exp $ */ /* @@ -455,8 +455,8 @@ struct rtentry *rtalloc(struct sockaddr *, int, unsigned int); void rtref(struct rtentry *); void rtfree(struct rtentry *); -int rt_ifa_add(struct ifaddr *, int, struct sockaddr *); -int rt_ifa_del(struct ifaddr *, int, struct sockaddr *); +int rt_ifa_add(struct ifaddr *, int, struct sockaddr *, unsigned int); +int rt_ifa_del(struct ifaddr *, int, struct sockaddr *, unsigned int); void rt_ifa_purge(struct ifaddr *); int rt_ifa_addlocal(struct ifaddr *); int rt_ifa_dellocal(struct ifaddr *); |