splitting reverse-zone-file

Mark Andrews Mark_Andrews at isc.org
Wed Mar 8 22:10:13 UTC 2006


> On Mar 8 2006, Mark Andrews wrote:
> >
> >> In article <dul5t2$1db2$1 at sf1.isc.org>,
> >>  Kevin Darcy <kcd at daimlerchrysler.com> wrote:
> >> 
> >> > I don't know why folks still refer to network classes any more. But if 
> >> > they do they should at least refer to them _correctly_.
> >> 
> >> The terms have essentially changed meaning.  Nowadays, "class C" means 
> >> /24, "class B" means /16, and "class A" means /8.
> >
> >	While it may be a losing battle.  I agree with Kevin.  There
> >	are still times which the distinction is important.
> >
> >	There are places in the code we ship where we do things
> >	differently based on which of CLASS A, B or C the address
> >	comes from.
> 
> Out of vulgar curiosity, what places are those? Is this BIND code we're
> talking about?

 
% grep -r CLASSA lib bin
lib/lwres/getnameinfo.c:                v4a >>= IN_CLASSA_NSHIFT;
lib/bind/inet/inet_makeaddr.c:          a.s_addr = (net << IN_CLASSA_NSHIFT) | (host & IN_CLASSA_HOST);
lib/bind/inet/inet_lnaof.c:     if (IN_CLASSA(i))
lib/bind/inet/inet_lnaof.c:             return ((i)&IN_CLASSA_HOST);
lib/bind/inet/inet_netof.c:     if (IN_CLASSA(i))
lib/bind/inet/inet_netof.c:             return (((i)&IN_CLASSA_NET) >> IN_CLASSA_NSHIFT);
lib/bind/irs/getnameinfo.c:             if (ntohl(*(const u_int32_t *)addr) >> IN_CLASSA_NSHIFT == 0)
lib/bind/irs/irpmarshall.c:                     ne.n_length = (IN_CLASSA(np1->n_net) ?
lib/bind/resolv/res_init.c:     if (IN_CLASSA(i))
lib/bind/resolv/res_init.c:             return (htonl(IN_CLASSA_NET));
% 
--
Mark Andrews, ISC
1 Seymour St., Dundas Valley, NSW 2117, Australia
PHONE: +61 2 9871 4742                 INTERNET: Mark_Andrews at isc.org



More information about the bind-users mailing list