Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!lll-lcc!ames!ucbcad!ucbvax!OKEEFFE.BERKELEY.EDU!bostic From: bostic@OKEEFFE.BERKELEY.EDU (Keith Bostic) Newsgroups: comp.bugs.4bsd.ucb-fixes Subject: ARTICLE #10 Message-ID: <8703222326.AA06300@okeeffe.Berkeley.EDU> Date: Sun, 22-Mar-87 18:26:01 EST Article-I.D.: okeeffe.8703222326.AA06300 Posted: Sun Mar 22 18:26:01 1987 Date-Received: Tue, 24-Mar-87 01:30:47 EST Sender: daemon@ucbvax.BERKELEY.EDU Distribution: world Organization: The ARPA Internet Lines: 29 Approved: ucb-fixes@okeeffe.berkeley.edu 4.3BSD network bug (#6, in_localaddr) Index: sys/netinet/in.c 4.3BSD FIX Description: A missing set of parentheses causes large packets to be sent to non-local destinations. Default-sized packets should be used when sending to destinations not on the local network. Fix: *** in.c.7.1 Wed Mar 4 23:32:17 1987 --- in.c.7.2 Wed Mar 4 23:31:55 1987 *************** *** 5,7 **** * ! * @(#)in.c 7.1 (Berkeley) 6/5/86 */ --- 5,7 ---- * ! * @(#)in.c 7.2 (Berkeley) 11/23/86 */ *************** *** 157,159 **** for (ia = in_ifaddr; ia; ia = ia->ia_next) ! if (net == subnetsarelocal ? ia->ia_net : ia->ia_subnet) return (1); --- 157,159 ---- for (ia = in_ifaddr; ia; ia = ia->ia_next) ! if (net == (subnetsarelocal ? ia->ia_net : ia->ia_subnet)) return (1);