diff options
author | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-09-17 05:06:21 +0000 |
---|---|---|
committer | Pierre-Yves Ritschard <pyr@cvs.openbsd.org> | 2007-09-17 05:06:21 +0000 |
commit | f75700d891f9b74d2f1c29a1ced7415b4916ea8f (patch) | |
tree | 5487ae14d17ef380fc1c5147393216ddad441c1e | |
parent | 48e1b392c83b66e84f297a13b9acbb6c1ba87519 (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.c | 6 |
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 |