🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.bugs.4bsd.ucb-fixes
Article #28

ARTICLE #10

#28
From: Keith Bostic
Date: Sun, 22 Mar 1987 23:26
29 lines
1419 bytes
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);
Technical Details
Message-ID: <8703222326.AA06300@okeeffe.Berkeley.EDU>
Path: arc1-ca.pugleaf.net!utzoo!mnetor!seismo!lll-lcc!ames!ucbcad!ucbvax!OKEEFFE.BERKELEY.EDU!bostic

Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Path: arc1-ca.pugleaf.net!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