From owner-cvs-all Sat Feb 24 10:36:12 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 4E60E37B503; Sat, 24 Feb 2001 10:36:03 -0800 (PST) (envelope-from jesper@FreeBSD.org) Received: (from jesper@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f1OIa3i61056; Sat, 24 Feb 2001 10:36:03 -0800 (PST) (envelope-from jesper) Message-Id: <200102241836.f1OIa3i61056@freefall.freebsd.org> From: Jesper Skriver Date: Sat, 24 Feb 2001 10:36:03 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/netinet in_pcb.c in_pcb.h tcp_subr.c udp_usrreq.c X-FreeBSD-CVS-Branch: RELENG_4 Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG jesper 2001/02/24 10:36:02 PST Modified files: (Branch: RELENG_4) sys/netinet in_pcb.c in_pcb.h tcp_subr.c udp_usrreq.c Log: MFC: src/sys/netinet/in_pcb.c rev 1.78 src/sys/netinet/in_pcb.h rev 1.36 src/sys/netinet/tcp_subr.c rev 1.91 src/sys/netinet/udp_usrreq.c rev 1.86 Without this a attacker sending ICMP messages, where the attached IP header (+ 8 bytes) has the address and port numbers == 0, would have the ICMP message applied to all sessions. The changes broken down: - remove 0 as a wildcard for addresses and port numbers in src/sys/netinet/in_pcb.c:in_pcbnotify() - add src/sys/netinet/in_pcb.c:in_pcbnotifyall() used to notify all sessions with the specific remote address. - change - src/sys/netinet/udp_usrreq.c:udp_ctlinput() - src/sys/netinet/tcp_subr.c:tcp_ctlinput() to use in_pcbnotifyall() to notify multiple sessions, instead of using in_pcbnotify() with 0 as src address and as port numbers. - remove check for src port == 0 in - src/sys/netinet/tcp_subr.c:tcp_ctlinput() - src/sys/netinet/udp_usrreq.c:udp_ctlinput() as they are no longer needed. - move handling of redirects and host dead from in_pcbnotify() to udp_ctlinput() and tcp_ctlinput(), so they will call in_pcbnotifyall() to notify all sessions with the specific remote address. Approved by: kris Inspired by: NetBSD Revision Changes Path 1.59.2.6 +43 -22 src/sys/netinet/in_pcb.c 1.32.2.1 +4 -1 src/sys/netinet/in_pcb.h 1.73.2.7 +15 -4 src/sys/netinet/tcp_subr.c 1.64.2.6 +17 -5 src/sys/netinet/udp_usrreq.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message