On 12/04/2009, at 1:57 PM, david wrote:
I'm trying to debug a networkmanager problem. I've found this xml file:~/.gconf/system/networking/connections/1/ipv4/%gconf.xml
SNIP
"routes" mtime="1236774478" type="list" ltype="int"> </entry><entry name="addresses" mtime="1236774478" type="list" ltype="int"><li type="int" value="1814304715"> </li>
Well, 1814304715 in binary is 01101100 00100100 00010111 11001011 which when you convert the grouping of four into a dotted series of octets you end up with 108.36.23.203 - which may or may not be relevant to your network, I'm just guessing that the integer addresses are the integer representation of the binary for the IP addresses ;)
<li type="int" value="24">
</li>
My guess is this is the number of bits assigned to the network - in other words, the netmask is 255.255.255.0 (or /24 in CIDR notation)
<li type="int" value="-31189045">
</li>
Again, assuming this is an integer representation of the binary (and assuming 2's compliment) we end up with 254.36.23.203 (after ignoring the highest 32 bits which are all ones) - which looks like a multicast address. I have no idea if this is how things work in Gnome world, but it was fun to blow the cobwebs off my binary arithmetic on a long weekend!
Cheers, James
smime.p7s
Description: S/MIME cryptographic signature
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
