Is there a standard function for converting IP address to number?

2006-12-04 Thread a
Is there a standard function converting four numbers to one 32-bit IP address? I mean a function like f(i, j, k, l) { return (i 8) | j) 8) | k) 8) | l; } Elisej Babenko ___ freebsd-questions@freebsd.org mailing list

Re: Is there a standard function for converting IP address to number?

2006-12-04 Thread Giorgos Keramidas
On 2006-12-04 14:45, [EMAIL PROTECTED] wrote: Is there a standard function converting four numbers to one 32-bit IP address? I mean a function like f(i, j, k, l) { return (i 8) | j) 8) | k) 8) | l; } That's not even a complete, usable function, but if you are looking

Re: Is there a standard function for converting IP address to number?

2006-12-04 Thread Matthew Seaman
[EMAIL PROTECTED] wrote: Is there a standard function converting four numbers to one 32-bit IP address? I mean a function like f(i, j, k, l) { return (i 8) | j) 8) | k) 8) | l; } Not exactly. inet_ntoa() and inet_aton() are about the closest I can think of. There's