[4016] in linux-net channel archive

home help back first fref pref prev next nref lref last post

Re: Virtual web server

daemon@ATHENA.MIT.EDU (Arnt Gulbrandsen)
Thu Aug 15 05:11:20 1996

To: longyear@netcom.com
Cc: linux-net@vger.rutgers.edu
In-Reply-To: Your message of "Sun, 11 Aug 1996 21:42:04 -0700 (PDT)"
Date: 	Tue, 13 Aug 1996 13:55:18 +0200
From: Arnt Gulbrandsen <agulbra@troll.no>

longyear@netcom.com (Al Longyear)
> However, does anyone have a way to 'properly' define that all 255
> possible IP addresses for a class-C network are local and not to be
> forwarded to another network?

One possible hack is to put code into ip_chk_addr to return IS_MYADDR
for the any address within the address/netmask of a dummy device.
It's a hack but easy and perhaps the cleanest hack.

A cleaner alternative (that I dislike) is to add another IFF_* flag
and do the test on that rather than on whether the device is a dummy
device.  Such a flag violates the spirit of IPv4 too much for me.

--Arnt

home help back first fref pref prev next nref lref last post