No subject


Mon Jun 20 21:04:01 UTC 2011


[..]
 * Recognized line formats are:
 *   INTIPLOW,INTIPHIGH,CC
 * and
 *   "INTIPLOW","INTIPHIGH","CC","CC3","COUNTRY NAME"
 * where INTIPLOW and INTIPHIGH are IPv4 addresses encoded as 4-byte
unsigned
 * integers, and CC is a country code.
[..]

Thus for instance 123.45.67.0 becomes:

$ printf "%02x %02x %02x %02x\n" 123 45 67 0
7b 2d 43 00

Thus 0x7b2d4300 which is in decimal:

$ printf "%d\n" 0x7b2d4300
2066563840

Thus to convert them back:

$ printf "%x\n" 2066563840
7b2d4300

$ printf "%d.%d.%d.%d\n" 0x7b 0x2d 0x43 0x00
123.45.67.0

That is, if you actually wanted to look inside them ;)

Greets,
 Jeroen


More information about the tor-talk mailing list