summaryrefslogtreecommitdiff
path: root/sys/netmpls/mpls_input.c
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2016-06-14 09:44:42 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2016-06-14 09:44:42 +0000
commit8590c53b6d471542cc30298ac39ac7361157ab52 (patch)
treefd11877216d27f956d4db30ce654c1f7b880a6d8 /sys/netmpls/mpls_input.c
parentef7dbacaa471766ec40e170a49d20a27f360197f (diff)
Store the source address associated with a route in its own chunk of
memory. This will allow to unlink 'sruct rtentry' and 'struct ifaddr' to be able to add route entries without needing an address. ok sthen@, visa@, florian@
Diffstat (limited to 'sys/netmpls/mpls_input.c')
-rw-r--r--sys/netmpls/mpls_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netmpls/mpls_input.c b/sys/netmpls/mpls_input.c
index 4d53675686a..349e465c34b 100644
--- a/sys/netmpls/mpls_input.c
+++ b/sys/netmpls/mpls_input.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mpls_input.c,v 1.54 2015/12/04 11:13:21 claudio Exp $ */
+/* $OpenBSD: mpls_input.c,v 1.55 2016/06/14 09:44:41 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_ifa->ifa_addr->sa_family == AF_INET)
+ if (rt->rt_addr->sa_family == AF_INET)
ia = ifatoia(rt->rt_ifa);
else {
/* XXX this needs fixing, if the MPLS is on an IP