ia_netbroadcast

Pawel Jakub Dawidek pjd at FreeBSD.org
Thu May 20 08:21:29 PDT 2004


On Tue, May 18, 2004 at 03:47:56AM -0700, Luigi Rizzo wrote:
+> On Tue, May 18, 2004 at 12:05:03PM +0200, Pawel Jakub Dawidek wrote:
+> ...
+> > +> > Do we still need ia_netboradcast field? It is calculated depending on
+> > +> > old-fashion classes (A, B, C). Is it used still?
+> > +> > I wonder if ia_broadaddr isn't sufficient today.
+> > +> 
+> > +> not just that, it seems that ia_netboradcast contains bogus info.
+> > 
+> > So?
+> 
+> nuke it!
+> Also if, as Andre said, it might be used by windows apps,
+> one could certainly compute it on the fly from the IP address.

Ok, this patch:

	http://people.freebsd.org/~pjd/patches/no_old_style_nets.patch

removes ia_netbroadcast, ia_net, ia_netmask field from structure
in_ifaddr and removes sysctl net.inet.ip.subnets_are_local as suggested
in commit log of revision 1.24 of file netinet/in.c:

Set subnetsarelocal to false.  In a classless world, the other case
is almost never useful.  (This is only a quick hack; someone should
go back and delete the entire subnetsarelocal==1 code path.)

Tests and comments are welcome.

-- 
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd at FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20040520/5954dc11/attachment.bin


More information about the freebsd-net mailing list