|
|
|
|
@ -40,7 +40,7 @@ import re
|
|
|
|
|
import copy
|
|
|
|
|
from setproctitle import setproctitle
|
|
|
|
|
#from crccheck.crc import Crc32
|
|
|
|
|
from hashlib import sha1
|
|
|
|
|
from hashlib import hashlib.sha1
|
|
|
|
|
|
|
|
|
|
# Twisted is pretty important, so I keep it separate
|
|
|
|
|
from twisted.internet.protocol import Factory, Protocol
|
|
|
|
|
@ -2066,7 +2066,7 @@ class routerHBP(HBSYSTEM):
|
|
|
|
|
_bits = _data[15]
|
|
|
|
|
|
|
|
|
|
#_pkt_crc = Crc32.calc(_data[4:53])
|
|
|
|
|
_pkt_crc = sha1(_data).digest()
|
|
|
|
|
_pkt_crc = hashlib.sha1(_data).digest()
|
|
|
|
|
|
|
|
|
|
_nine = bytes_3(9)
|
|
|
|
|
|
|
|
|
|
|