From owner-freebsd-bugs Tue Jul 7 12:04:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA16990 for freebsd-bugs-outgoing; Tue, 7 Jul 1998 12:04:50 -0700 (PDT) (envelope-from owner-freebsd-bugs@FreeBSD.ORG) Received: from indigo.ie (nsmart@ts01-45.waterford.indigo.ie [194.125.139.108]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA16984 for ; Tue, 7 Jul 1998 12:04:45 -0700 (PDT) (envelope-from rotel@indigo.ie) Received: (from nsmart@localhost) by indigo.ie (8.8.8/8.8.7) id TAA03556; Tue, 7 Jul 1998 19:55:33 +0100 (IST) (envelope-from rotel@indigo.ie) From: Niall Smart Message-Id: <199807071855.TAA03556@indigo.ie> Date: Tue, 7 Jul 1998 19:55:33 +0000 In-Reply-To: David Greenman "Re: kern/7191: FreeBSD 2.2.6 generates Source-route prohibited when not routing" (Jul 7, 9:42am) Reply-To: rotel@indigo.ie X-Mailer: Mail User's Shell (7.2.6 beta(3) 11/17/96) To: dg@root.com, Samuel S Thomas Subject: Re: kern/7191: FreeBSD 2.2.6 generates Source-route prohibited when not routing Cc: Poul-Henning Kamp , freebsd-bugs@FreeBSD.ORG Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Jul 7, 9:42am, David Greenman wrote: } Subject: Re: kern/7191: FreeBSD 2.2.6 generates Source-route prohibited wh > > if (!ip_dosourceroute) { > ! if (ipforwarding) { > ! char buf[16]; /* aaa.bbb.ccc.ddd\0 */ > ! /* > ! * Acting as a router, so generate ICMP > ! */ > nosourcerouting: > ! strcpy(buf, inet_ntoa(ip->ip_dst)); > ! log(LOG_WARNING, > ! "attempted source route from %s to %s\n", > ! inet_ntoa(ip->ip_src), buf); > ! type = ICMP_UNREACH; > ! code = ICMP_UNREACH_SRCFAIL; > ! goto bad; > ! } else { > ! /* > ! * Not acting as a router, so silently drop. > ! */ > ! ipstat.ips_cantforward++; > ! m_freem(m); > ! return (1); > ! } Hi, Does this patch mean that if a machine receives a source routed packet which is destined for it then it will be silently dropped if source routing is disabled? Shouldn't we log such occurences? Niall -- Niall Smart. PGP: finger njs3@motmot.doc.ic.ac.uk FreeBSD: Turning PC's into Workstations: www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message