$ipaddr vs $netaddr
David Miller
justdave at bugzilla.org
Tue Jan 20 22:42:01 UTC 2004
On 1/20/2004 2:37 PM -0800, Jon Wilmoth wrote:
> If the loginnetmask is 24, will get_netaddr will return nnn.nnn.nnn or
> nnn.nnn.nnn.000? Perhaps I should rephrase the question as "is the
> number of bits chopped or substituted?" If substituted, what's the
> substitution value?
substituted. What it returns still looks like an IP address, with no
leading zeros. So if you give it xxx.yyy.zzz.www with a loginnetmask of
24, it'll return xxx.yyy.zzz.0
--
Dave Miller Project Leader, Bugzilla Bug Tracking System
http://www.justdave.net/ http://www.bugzilla.org/
More information about the developers
mailing list