From f0551e03f4f823c11918d7702a72d77721f96355 Mon Sep 17 00:00:00 2001 From: christos Date: Tue, 31 Jan 2006 17:15:20 +0000 Subject: [PATCH] PR/32676: Yves-Emmanuel JUTARD: faithprefix should only be defined with INET6 --- sys/net/if_faith.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/sys/net/if_faith.c b/sys/net/if_faith.c index dce147f7c825..8b47ee157b86 100644 --- a/sys/net/if_faith.c +++ b/sys/net/if_faith.c @@ -1,4 +1,4 @@ -/* $NetBSD: if_faith.c,v 1.32 2005/12/11 23:05:25 thorpej Exp $ */ +/* $NetBSD: if_faith.c,v 1.33 2006/01/31 17:15:20 christos Exp $ */ /* $KAME: if_faith.c,v 1.21 2001/02/20 07:59:26 itojun Exp $ */ /* @@ -40,7 +40,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: if_faith.c,v 1.32 2005/12/11 23:05:25 thorpej Exp $"); +__KERNEL_RCSID(0, "$NetBSD: if_faith.c,v 1.33 2006/01/31 17:15:20 christos Exp $"); #include "opt_inet.h" @@ -290,6 +290,7 @@ faithioctl(struct ifnet *ifp, u_long cmd, caddr_t data) return (error); } +#ifdef INET6 /* * XXX could be slow * XXX could be layer violation to call sys/net from sys/netinet6 @@ -318,3 +319,4 @@ faithprefix(struct in6_addr *in6) RTFREE(rt); return ret; } +#endif