summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorcjc <cjc@FreeBSD.org>2002-01-26 10:14:08 +0000
committercjc <cjc@FreeBSD.org>2002-01-26 10:14:08 +0000
commitffde9fe98f3c618efe73388499f84ed8e7f7dbb9 (patch)
treeaaf6f53624636d798d2da147fee8cf6cd8b2fa03 /sys
parentf07bfdc654e2880d05a53a80682f5d5057d8e6c4 (diff)
downloadFreeBSD-src-ffde9fe98f3c618efe73388499f84ed8e7f7dbb9.zip
FreeBSD-src-ffde9fe98f3c618efe73388499f84ed8e7f7dbb9.tar.gz
The ipfw(8) 'tee' action simply hasn't worked on incoming packets for
some time. _All_ packets, regardless of destination, were accepted by the machine as if addressed to it. Jump back to 'pass' processing for a teed packet instead of falling through as if it was ours. PR: kern/31130 Reviewed by: -net, luigi MFC after: 2 weeks
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/ip_input.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/netinet/ip_input.c b/sys/netinet/ip_input.c
index dec4d94..9a4c248 100644
--- a/sys/netinet/ip_input.c
+++ b/sys/netinet/ip_input.c
@@ -806,6 +806,9 @@ found:
return;
m = clone;
ip = mtod(m, struct ip *);
+ ip->ip_len += hlen;
+ divert_info = 0;
+ goto pass;
}
#endif
OpenPOWER on IntegriCloud