Hi, I get the netmask (mask="0xffffff00") from ifconfig in openbsd, and i would convert it to decimal (255.255.255.0)
I think that socket module doesn't help on this. So I'll have to make
something as this for separate 'mask'
[s[i:i+2] for i in range(0, len(s), 2)]
then i could use int('', 16)
_______________________________________________
Tutor maillist - [email protected]
http://mail.python.org/mailman/listinfo/tutor
