MartijnBraam / python-isc-dhcp-leases

Small python module for reading /var/lib/dhcp/dhcpd.leases from isc-dhcp-server
MIT License
123 stars 47 forks source link

iaid endianness/signed incorrect #6

Closed freddy36 closed 9 years ago

freddy36 commented 9 years ago

iaid is incorrectly unpacked (wrong endianess and as signed integer), it should be: self.iaid = struct.unpack('<I', self.host_identifier[0:4])[0] instead of self.iaid = struct.unpack('>i', self.host_identifier[0:4])[0

MartijnBraam commented 9 years ago

Oops, changed it