diff options
author | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-07-11 09:23:07 +0000 |
---|---|---|
committer | Martin Pieuchot <mpi@cvs.openbsd.org> | 2016-07-11 09:23:07 +0000 |
commit | c6e76dc3f64f076a96821005cfdc663abec908dd (patch) | |
tree | ffd4db1505496f9a5aa1e30e854f76067d9321ef /sys/netmpls | |
parent | d6c42c544a577af769b4093d981d9afcd773cccd (diff) |
Revert the introduction of ``rt_addr''.
Being able to add route entries without configured addresses is a nice
feature but this is not my fight. So I'd rather no add another pointer
to ``struct rtentry'' if I'm not removing another one.
Diffstat (limited to 'sys/netmpls')
-rw-r--r-- | sys/netmpls/mpls_input.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netmpls/mpls_input.c b/sys/netmpls/mpls_input.c index 349e465c34b..4db0bc506bd 100644 --- a/sys/netmpls/mpls_input.c +++ b/sys/netmpls/mpls_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpls_input.c,v 1.55 2016/06/14 09:44:41 mpi Exp $ */ +/* $OpenBSD: mpls_input.c,v 1.56 2016/07/11 09:23:06 mpi Exp $ */ /* * Copyright (c) 2008 Claudio Jeker <claudio@openbsd.org> @@ -374,7 +374,7 @@ mpls_do_error(struct mbuf *m, int type, int code, int destmtu) m_freem(m); return (NULL); } - if (rt->rt_addr->sa_family == AF_INET) + if (rt->rt_ifa->ifa_addr->sa_family == AF_INET) ia = ifatoia(rt->rt_ifa); else { /* XXX this needs fixing, if the MPLS is on an IP |