Search found 2 matches

by mjacobs
Mon Feb 04, 2013 8:39 am
Forum: NetBurner Software
Topic: Configuration Record Checksum
Replies: 4
Views: 3679

Re: Configuration Record Checksum

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 ...
by mjacobs
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 ...