*BSD News Article 91046


Return to BSD News archive

Newsgroups: comp.unix.bsd.netbsd.misc
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!europa.clark.net!news.mathworks.com!uunet!in3.uu.net!194.77.0.15!news.gtn.com!klicman.de!ora.de!bad
From: bad@ora.de (Christoph Badura)
Subject: Re: Question on ipintr function
Message-ID: <E718yn.Cz1@ora.de>
Organization: Verlag O'Reilly
References: <Pine.SOL.3.95.970313152838.28603A-100000@ector.cs.purdue.edu>
Date: Fri, 14 Mar 1997 12:20:47 GMT
Lines: 19
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.netbsd.misc:5630

In <Pine.SOL.3.95.970313152838.28603A-100000@ector.cs.purdue.edu> Anshul Dhir <dhir@cs.purdue.edu> writes:
>I am not able to understand how the router will deal with a packet that it
>is supposed to broadcast on one of its local h/w networks, because acc. to
>the code, as soon as it finds out that the packet is for itself ( by
>comparing the packet's ip destination address to its interface addresses
>, then the network addresses and finally with the 255.255.255.255 ) it
>sends that packet to the upper layers and goes on to get the next packet.

I'm not sure I understand what you're having a problem with.  Routers
are not supposed to forward broadcast messages except in a few special cases.

Are you saying that directed broadcasts and "all subnets" broadcasts aren't
forwarded?

-- 
Christoph Badura

Now available in print: Lion's Commentary on UNIX 6th Edition, with Source Code
			http://www.peer-to-peer.com/