summaryrefslogtreecommitdiff
path: root/sys/net/if_ethersubr.c
diff options
context:
space:
mode:
authorClaudio Jeker <claudio@cvs.openbsd.org>2008-05-09 00:37:44 +0000
committerClaudio Jeker <claudio@cvs.openbsd.org>2008-05-09 00:37:44 +0000
commit9f01cd8bafcbfce907fee67d42d4569622b52b47 (patch)
tree7a896ecd0f31609dce2c81bc51b34a7d6639921e /sys/net/if_ethersubr.c
parenta25b4a6e1a5963b74c272df3334ddbafeb727183 (diff)
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@
Diffstat (limited to 'sys/net/if_ethersubr.c')
-rw-r--r--sys/net/if_ethersubr.c4
1 files changed, 2 insertions, 2 deletions
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);