mirror of
https://github.com/uhi22/pyPLC.git
synced 2024-11-20 01:13:58 +00:00
sniffer output in one single line
This commit is contained in:
parent
834a4642fc
commit
2e812c2f57
1 changed files with 2 additions and 3 deletions
|
@ -16,7 +16,7 @@
|
|||
# SLAAC: Stateless auto address configuration (not SLAC!). A method to automatically set IPv6 address, based
|
||||
# on the 6 byte MAC address.
|
||||
|
||||
from helpers import showAsHex
|
||||
from helpers import showAsHex, prettyHexMessage
|
||||
import udpChecksum
|
||||
|
||||
|
||||
|
@ -172,8 +172,7 @@ class ipv6handler():
|
|||
# 0x8001 EXI encoded V2G message
|
||||
if (v2gptPayloadType == 0x8001):
|
||||
self.ExiPacket = self.v2gframe[8:] # the exi payload, without the 8 bytes V2GTP header
|
||||
print("EXI from " + str(self.tcpsourceport) + " to " + str(self.tcpdestinationport))
|
||||
showAsHex(self.ExiPacket)
|
||||
print("[SNIFFER] EXI from " + str(self.tcpsourceport) + " to " + str(self.tcpdestinationport) + " " + prettyHexMessage(self.ExiPacket))
|
||||
# Todo: further process the EXI packet. E.g. write it into file for offline analysis.
|
||||
# And send it to decoder.
|
||||
|
||||
|
|
Loading…
Reference in a new issue