summaryrefslogtreecommitdiff
path: root/sys/net
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2009-01-31 20:06:56 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2009-01-31 20:06:56 +0000
commit007413a399f1a3cbfc6d642e7a8fbc55cd4274a0 (patch)
tree87efd999797d6447ea2b424b1c5a364370e33178 /sys/net
parent31021fa57292611855586f31b365cc2eb2d6439c (diff)
unbreak ! INET6 case by sprinking #ifdef INET6
noticed by Vladimir Kirillov <proger@uaoug.org.ua>
Diffstat (limited to 'sys/net')
-rw-r--r--sys/net/pf_norm.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sys/net/pf_norm.c b/sys/net/pf_norm.c
index 1658242cdc5..8fa6081287e 100644
--- a/sys/net/pf_norm.c
+++ b/sys/net/pf_norm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf_norm.c,v 1.114 2009/01/29 14:11:45 henning Exp $ */
+/* $OpenBSD: pf_norm.c,v 1.115 2009/01/31 20:06:55 henning Exp $ */
/*
* Copyright 2001 Niels Provos <provos@citi.umich.edu>
@@ -118,7 +118,9 @@ int pf_normalize_tcpopt(struct pf_rule *, struct mbuf *,
struct tcphdr *, int, sa_family_t);
void pf_scrub_ip(struct mbuf **, u_int32_t, u_int8_t,
u_int8_t);
+#ifdef INET6
void pf_scrub_ip6(struct mbuf **, u_int8_t);
+#endif
#define DPFPRINTF(x) do { \
if (pf_status.debug >= PF_DEBUG_MISC) { \
printf("%s: ", __func__); \
@@ -1892,6 +1894,7 @@ pf_scrub_ip(struct mbuf **m0, u_int32_t flags, u_int8_t min_ttl, u_int8_t tos)
}
}
+#ifdef INET6
void
pf_scrub_ip6(struct mbuf **m0, u_int8_t min_ttl)
{
@@ -1902,3 +1905,4 @@ pf_scrub_ip6(struct mbuf **m0, u_int8_t min_ttl)
if (min_ttl && h->ip6_hlim < min_ttl)
h->ip6_hlim = min_ttl;
}
+#endif