From bba43e7d1c23b4a76ebca783d9543cd9e67798b6 Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Tue, 1 Jul 2003 00:28:53 +0000 Subject: wrap pf_normalize_ip6() by #ifdef INET6. pointed out by Wouter Clarie --- sys/net/pf_norm.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/net') diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c index c6e56bc19fa..ecef4432fb1 100644 --- a/sys/net/pf_norm.c +++ b/sys/net/pf_norm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_norm.c,v 1.61 2003/06/29 23:37:12 itojun Exp $ */ +/* $OpenBSD: pf_norm.c,v 1.62 2003/07/01 00:28:52 itojun Exp $ */ /* * Copyright 2001 Niels Provos @@ -994,6 +994,7 @@ pf_normalize_ip(struct mbuf **m0, int dir, struct ifnet *ifp, u_short *reason) return (PF_DROP); } +#ifdef INET6 int pf_normalize_ip6(struct mbuf **m0, int dir, struct ifnet *ifp, u_short *reason) { @@ -1160,6 +1161,7 @@ pf_normalize_ip6(struct mbuf **m0, int dir, struct ifnet *ifp, u_short *reason) PFLOG_PACKET(ifp, h, m, AF_INET6, dir, *reason, r, NULL, NULL); return (PF_DROP); } +#endif int pf_normalize_tcp(int dir, struct ifnet *ifp, struct mbuf *m, int ipoff, -- cgit v1.2.3