Thanks so far but I think I may be running into endianness problems. The code I'm using right now is this:
ints = [ord(x) for x in config_record]
running_total = 0
for i in range(0, len(ints), 2):
running_total += int((ints[i] << 8) | ints[i + 1])
checksum = (0xAAAA - (running_total & 0xFFFF ...
Search found 2 matches
- Mon Feb 04, 2013 8:39 am
- Forum: NetBurner Software
- Topic: Configuration Record Checksum
- Replies: 4
- Views: 3679
- Wed Jan 23, 2013 11:00 am
- Forum: NetBurner Software
- Topic: Configuration Record Checksum
- Replies: 4
- Views: 3679
Configuration Record Checksum
I'm trying to write a Python module that can find and update the IP address for NetBurners. This post by tod was invaluable in working out the packet structure, how to make a broadcast, and listen for responses. One problem remains: calculating the checksum. All documentation and sample code I've ...