diff options
author | Sivaprasad Tummala <Sivaprasad.Tummala@intel.com> | 2021-08-22 15:09:35 +0530 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-08-27 14:07:59 +0000 |
commit | ba46778f55e51503fa47588faddea75efca9b655 (patch) | |
tree | f61102197e925c49de96ea0f97907a4aa582fe30 /src/plugins/snort/daq_vpp.c | |
parent | e09a2337b82d2dcb5b7379a9581477af291d1a75 (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/daq_vpp.c')
-rw-r--r-- | src/plugins/snort/daq_vpp.c | 1 |
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; |