]> git.ipfire.org Git - thirdparty/suricata.git/commit
dnp3: set byte order when logging dnp3 src and dst 5594/head
authorJason Ish <jason.ish@oisf.net>
Mon, 23 Nov 2020 18:11:42 +0000 (12:11 -0600)
committerJason Ish <jason.ish@oisf.net>
Mon, 23 Nov 2020 20:35:34 +0000 (14:35 -0600)
commit76e011a5ba9ef50b53692bbfeaf25ad28bc96389
tree217f8385540f4339c95d69ab686514759c074c22
parent75c0f9bd0a793edd5ef7309384c0fc259e9c42f2
dnp3: set byte order when logging dnp3 src and dst

DNP3 uses little endian on the wire, for the most part this
is handled as the messages are deserialize. However, the link
header is a cast over raw data, so swap these bytes as they
are being logged.

Redmine issue:
https://redmine.openinfosecfoundation.org/issues/4173
src/output-json-dnp3.c