summaryrefslogtreecommitdiff
path: root/sys/net/pf.c
diff options
context:
space:
mode:
authorPhilipp Buehler <pb@cvs.openbsd.org>2002-06-09 10:56:00 +0000
committerPhilipp Buehler <pb@cvs.openbsd.org>2002-06-09 10:56:00 +0000
commitef00c6f3738fd798e82aef087d3cf2c9cac6c3c7 (patch)
tree2788f6c6b0307399814c1ac57d6c91560e1ccf7b /sys/net/pf.c
parent681261905b8d3723af2d0cec4727bb2878f0d147 (diff)
reapply patch from jasoni@ for ICMP6_PACKET_TOO_BIG
both have been lost, due to diff thinking about reversing those lines after merge tested
Diffstat (limited to 'sys/net/pf.c')
-rw-r--r--sys/net/pf.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c
index ca5ff7757ed..7b4d7705905 100644
--- a/sys/net/pf.c
+++ b/sys/net/pf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pf.c,v 1.226 2002/06/09 10:52:38 pb Exp $ */
+/* $OpenBSD: pf.c,v 1.227 2002/06/09 10:55:59 pb Exp $ */
/*
* Copyright (c) 2001 Daniel Hartmeier
@@ -3804,10 +3804,13 @@ pf_route6(struct mbuf **m, struct pf_rule *r, int dir)
if (m0->m_pkthdr.len <= ifp->if_mtu) {
error = (*ifp->if_output)(ifp, m0, (struct sockaddr *)dst,
NULL);
- } else if (r->rt != PF_DUPTO)
- icmp6_error(m0, ICMP6_PACKET_TOO_BIG, 0, ifp->if_mtu);
- else
- goto bad;
+ } else {
+ in6_ifstat_inc(ifp, ifs6_in_toobig);
+ if (r->rt != PF_DUPTO)
+ icmp6_error(m0, ICMP6_PACKET_TOO_BIG, 0, ifp->if_mtu);
+ else
+ goto bad;
+ }
done:
if (r->rt != PF_DUPTO)