> From: Gustavo Lozano
> Sent: Monday, 28 July 2003 1:19 PM
> Paul.
>
> Not everybody uses Linux :), inet_aton() is not present in Solaris as
> example, dont ask my why, I didnt checked, so may be you can use another
> function to do the translation of the Ip address into data.
According to my man page, it's a BSD 4.3 thing.
As is inet_ntoa, which is used extensively in the part I _didn't_ write.
Mind you, Solaris appears to _have_ inet_ntoa, but not inet_aton...
*blargh*
How about inet_addr? It's present in the manpages on both my Linux box
and the SunOS box I have access to... I just have to extract the IP
address from the in_addr_t, rather than just storing the result
directly to a uint32_t. So not a major change, one or two places...
Feel free to try that and post the patch, I don't mind since it's
served its purpose for me, and I'm hoping to get my ippool module
revision completed before its needed again. :-)
Side note, Linux feels that inet_addr is an obsoleted interface
to inet_aton... It'd be nice if I could link these into libradius,
and use whatever it provides (ip_aton and ip_ntoa I think). :-)
In fact, it'd be nice to have the ippooltool actually use rlm_ippool
or at least share code... That way updates would be nice and safe,
but that'll wait until (if) ippooltool joins the FreeRADIUS CVS tree.
--
=========================================================
Paul "TBBle" Hampson
Bubblesworth Pty Ltd (ABN: 51 095 284 361)
[EMAIL PROTECTED]
This is a one line proof...if we start
sufficiently far to the left.
-- Cambridge University Math Department
---------------------------------------------------------
Random signature generator 3.0 by Paul "TBBle" Hampson
=========================================================
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html