]> git.ipfire.org Git - thirdparty/suricata.git/commit
dnp3: fixed wrong flow direction identification
authorIlya Bakhtin <ilya.bakhtin@gmail.com>
Tue, 25 Aug 2020 13:01:22 +0000 (15:01 +0200)
committerVictor Julien <victor@inliniac.net>
Wed, 7 Oct 2020 16:41:09 +0000 (18:41 +0200)
commitb044093e633269e42dd3189e1f7fa141c413bac1
treee105676fbe96a1fe3407041fbc58d3ece3b9f098
parentc03c8738b4258aeef7a8264e878b49bb19e5dd1e
dnp3: fixed wrong flow direction identification

dnp3 is a communication between so-called master and outstation
in our terms master is a client and outstation is a server
DIR flag in dnp3 header is nonzero when a packet is from master
so if DIR is nonzero then packet is 'toserver'
src/app-layer-dnp3.c