Date: Tue, 7 Jul 1998 19:55:33 +0000 From: Niall Smart <rotel@indigo.ie> To: dg@root.com, Samuel S Thomas <sthomas@lart.net> Cc: Poul-Henning Kamp <phk@critter.freebsd.dk>, freebsd-bugs@FreeBSD.ORG Subject: Re: kern/7191: FreeBSD 2.2.6 generates Source-route prohibited when not routing Message-ID: <199807071855.TAA03556@indigo.ie> In-Reply-To: David Greenman <dg@root.com> "Re: kern/7191: FreeBSD 2.2.6 generates Source-route prohibited when not routing" (Jul 7, 9:42am)
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807071855.TAA03556>