Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 2003 15:02:07 -0700
From:      John-Mark Gurney <gurney_j@efn.org>
To:        peter bartoli <peter@alphafight.net>
Cc:        sparc64@freebsd.org
Subject:   Re: bug in port security/nbaudit ...
Message-ID:  <20030707220207.GI44762@funkthat.com>
In-Reply-To: <3683D262-B0C4-11D7-BE31-000393D16F58@alphafight.net>
References:  <3683D262-B0C4-11D7-BE31-000393D16F58@alphafight.net>

next in thread | previous in thread | raw e-mail | index | archive | help
peter bartoli wrote this message on Mon, Jul 07, 2003 at 14:44 -0700:
> ... if you type in an IP versus a hostname on sparc64 (or at least my  
> sparc64), the address shows up as zeroes ... just a heads-up.

Inform the nbaudit author that he is not using a proper data type to
represent an ip address.  He is probably using u_long instead of in-addr_t
(aka uint32_t).  (This doesn't show up since the alpha is little endian
and luckily sticks the "ip" in the proper place.)

His program is broken on all LP64 big endian platforms.

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030707220207.GI44762>