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

a at zeos.net a at zeos.net
Mon Dec 4 04:45:56 PST 2006


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


More information about the freebsd-questions mailing list