summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-09-17 05:06:21 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2007-09-17 05:06:21 +0000
commitf75700d891f9b74d2f1c29a1ced7415b4916ea8f (patch)
tree5487ae14d17ef380fc1c5147393216ddad441c1e
parent48e1b392c83b66e84f297a13b9acbb6c1ba87519 (diff)
Do not take wild guesses at how if_enc's internal works, include
net/if_enc.h instead. ok todd@ and probably claudio who's in the train.
-rw-r--r--sys/net/route.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 6595aeb1701..38ab3e3a5fa 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: route.c,v 1.85 2007/09/15 16:43:51 henning Exp $ */
+/* $OpenBSD: route.c,v 1.86 2007/09/17 05:06:20 pyr Exp $ */
/* $NetBSD: route.c,v 1.14 1996/02/13 22:00:46 christos Exp $ */
/*
@@ -123,8 +123,8 @@
#ifdef IPSEC
#include <netinet/ip_ipsp.h>
+#include <net/if_enc.h>
-extern struct ifnet encif;
struct ifaddr *encap_findgwifa(struct sockaddr *);
#endif
@@ -164,7 +164,7 @@ TAILQ_HEAD(rt_labels, rt_label) rt_labels = TAILQ_HEAD_INITIALIZER(rt_labels);
struct ifaddr *
encap_findgwifa(struct sockaddr *gw)
{
- return (TAILQ_FIRST(&encif.if_addrlist));
+ return (TAILQ_FIRST(&encif[0].sc_if.if_addrlist));
}
#endif