aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/snort
diff options
context:
space:
mode:
authorSivaprasad Tummala <Sivaprasad.Tummala@intel.com>2021-08-22 15:09:35 +0530
committerDamjan Marion <dmarion@me.com>2021-08-27 14:07:59 +0000
commitba46778f55e51503fa47588faddea75efca9b655 (patch)
treef61102197e925c49de96ea0f97907a4aa582fe30 /src/plugins/snort
parente09a2337b82d2dcb5b7379a9581477af291d1a75 (diff)
snort: fix incorrect data length for snort inspection
set the right data length to decode the packet properly. Type: fix Signed-off-by: Sivaprasad Tummala <Sivaprasad.Tummala@intel.com> Change-Id: I6a35fa54851496d0a958f1a64a547b7f08bb4c19
Diffstat (limited to 'src/plugins/snort')
-rw-r--r--src/plugins/snort/daq_vpp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/snort/daq_vpp.c b/src/plugins/snort/daq_vpp.c
index ec89b0c114e..91bcb519e0e 100644
--- a/src/plugins/snort/daq_vpp.c
+++ b/src/plugins/snort/daq_vpp.c
@@ -543,6 +543,7 @@ vpp_daq_msg_receive_one (VPP_Context_t *vc, VPPQueuePair *qp,
dd->pkthdr.pktlen = d->length;
dd->pkthdr.address_space_id = d->address_space_id;
dd->msg.data = vc->bpools[d->buffer_pool].base + d->offset;
+ dd->msg.data_len = d->length;
next = next + 1;
msgs[0] = &dd->msg;