diff options
author | 2005-06-08 00:13:19 +0000 | |
---|---|---|
committer | 2005-06-08 00:13:19 +0000 | |
commit | 164d1131651c035e747795eee4b3b57e15b60eb4 (patch) | |
tree | 1ad9154fb89741b0c03408db30ddd2803da718ce | |
parent | move description of the default groups to the ifconfog manpage (diff) | |
download | wireguard-openbsd-164d1131651c035e747795eee4b3b57e15b60eb4.tar.xz wireguard-openbsd-164d1131651c035e747795eee4b3b57e15b60eb4.zip |
handle ramdisks, and kernels without inet6; henning ok
-rw-r--r-- | sys/net/if.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys/net/if.c b/sys/net/if.c index f6b668015ae..7a505296500 100644 --- a/sys/net/if.c +++ b/sys/net/if.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if.c,v 1.128 2005/06/07 18:21:44 henning Exp $ */ +/* $OpenBSD: if.c,v 1.129 2005/06/08 00:13:19 deraadt Exp $ */ /* $NetBSD: if.c,v 1.35 1996/05/07 05:26:04 thorpej Exp $ */ /* @@ -1743,7 +1743,9 @@ if_group_ext_build(void) struct ifg_group *ifg; struct ifg_member *ifgm, *next; struct sockaddr_in sa_in; +#ifdef INET6 struct sockaddr_in6 sa_in6; +#endif struct radix_node_head *rnh; struct radix_node *rn; struct rtentry *rt; @@ -1769,9 +1771,11 @@ if_group_ext_build(void) rt = (struct rtentry *)rn; if (rt->rt_ifp) if_addgroup(rt->rt_ifp, IFG_EXTERNAL); +#ifndef SMALL_KERNEL if (rn_mpath_capable(rnh)) rn = rn_mpath_next(rn); else +#endif rn = NULL; } while (rn != NULL); } @@ -1786,9 +1790,11 @@ if_group_ext_build(void) rt = (struct rtentry *)rn; if (rt->rt_ifp) if_addgroup(rt->rt_ifp, IFG_EXTERNAL); +#ifndef SMALL_KERNEL if (rn_mpath_capable(rnh)) rn = rn_mpath_next(rn); else +#endif rn = NULL; } while (rn != NULL); } |