N
Nicolas Vincent
Hello to forum members,
Here's my issue : I have IPs stored in a database but those are "little
endian byte order" encoded and the field type of the BDD is BigInt
(similar to Ruby's BigNum).
How could I get back my human readable IP ? I've been digging around
'unpack' for a while now but without success.
Here's an example :
BigNum stored in the database : 3232235797
Resulting IP : 192.168.1.21
Could you give me some ideas or code ? I'm really stucked !
Thanks for all,
Liteo
Here's my issue : I have IPs stored in a database but those are "little
endian byte order" encoded and the field type of the BDD is BigInt
(similar to Ruby's BigNum).
How could I get back my human readable IP ? I've been digging around
'unpack' for a while now but without success.
Here's an example :
BigNum stored in the database : 3232235797
Resulting IP : 192.168.1.21
Could you give me some ideas or code ? I'm really stucked !
Thanks for all,
Liteo