From 9f01cd8bafcbfce907fee67d42d4569622b52b47 Mon Sep 17 00:00:00 2001 From: Claudio Jeker Date: Fri, 9 May 2008 00:37:44 +0000 Subject: A little bit of magic to make arp lookups work in MPLS as they should. No need to preload the arp table anymore. hai norby@ --- sys/net/if_ethersubr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net') diff --git a/sys/net/if_ethersubr.c b/sys/net/if_ethersubr.c index 2e345c7a92d..974046bf7ed 100644 --- a/sys/net/if_ethersubr.c +++ b/sys/net/if_ethersubr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_ethersubr.c,v 1.119 2008/05/07 05:51:12 mpf Exp $ */ +/* $OpenBSD: if_ethersubr.c,v 1.120 2008/05/09 00:37:43 claudio Exp $ */ /* $NetBSD: if_ethersubr.c,v 1.19 1996/05/07 02:40:30 thorpej Exp $ */ /* @@ -334,7 +334,7 @@ ether_output(ifp0, m0, dst, rt0) #ifdef MPLS case AF_MPLS: if (rt) - dst = (struct sockaddr *)rt->rt_gateway; + dst = rt_key(rt); else senderr(EHOSTUNREACH); -- cgit v1.2.3