$ipaddr vs $netaddr
Jon Wilmoth
JWilmoth at starbucks.com
Tue Jan 20 22:47:23 UTC 2004
Great...I think this will solve the problem some of our users are
experiencing where they're being prompted multiple times/session for
login info. The logincookies table shows different values for the last
8 bits even from a stationary machine.
-----Original Message-----
From: developers-owner at bugzilla.org
[mailto:developers-owner at bugzilla.org] On Behalf Of David Miller
Sent: Tuesday, January 20, 2004 2:42 PM
To: developers at bugzilla.org
Subject: Re: $ipaddr vs $netaddr
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/
-
To view or change your list settings, click here:
<http://bugzilla.org/cgi-bin/mj_wwwusr?user=jwilmoth@starbucks.com>
More information about the developers
mailing list