From owner-cvs-sys Sun Feb 2 08:33:15 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA24397 for cvs-sys-outgoing; Sun, 2 Feb 1997 08:33:15 -0800 (PST) Received: (from brian@localhost) by freefall.freebsd.org (8.8.5/8.8.5) id IAA24390; Sun, 2 Feb 1997 08:33:14 -0800 (PST) Date: Sun, 2 Feb 1997 08:33:14 -0800 (PST) From: Brian Somers Message-Id: <199702021633.IAA24390@freefall.freebsd.org> To: CVS-committers, cvs-all, cvs-sys Subject: cvs commit: src/sys/netinet ip_divert.c ip_input.c ip_output.c Sender: owner-cvs-sys@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk brian 97/02/02 08:33:14 Modified: sys/netinet ip_divert.c ip_input.c ip_output.c Log: Reset ip_divert_ignore to zero immediately after use - also, set it in the first place, independent of whether sin->sin_port is set. The result is that diverted packets that are being forwarded will be diverted once and only once on the way in (ip_input()) and again, once and only once on the way out (ip_output()) - twice in total. ICMP packets that don't contain a port will now also be diverted. Revision Changes Path 1.4 +1 -2 src/sys/netinet/ip_divert.c 1.56 +1 -0 src/sys/netinet/ip_input.c 1.48 +1 -0 src/sys/netinet/ip_output.c