This commit is contained in:
Luca Deri 2019-09-23 18:04:55 +02:00
parent 3f56b2476a
commit 19dbcaa3a9
4 changed files with 188 additions and 183 deletions

View file

@ -166,7 +166,7 @@ def packetcaptured(packet):
#filling pcap_pkthdr
h.len = h.caplen = len(packet)
h.ts.tv_sec = int(packet["IP"].time/1000000)
h.ts.tv_usec = round(packet["IP"].time)
h.ts.tv_usec = int(packet["IP"].time)
# real work
if int(packet[1].frag) == 0: # not fragmented packet