Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Dec 2006 14:45:50 +0200
From:      a@zeos.net
To:        freebsd-questions@freebsd.org
Subject:   Is there a standard function for converting IP address to number?
Message-ID:  <20061204124550.GA1766@host.my.domain>

next in thread | raw e-mail | index | archive | help
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



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