snort: fix incorrect data length for snort inspection 63/33563/2
authorSivaprasad Tummala <Sivaprasad.Tummala@intel.com>
Sun, 22 Aug 2021 09:39:35 +0000 (15:09 +0530)
committerDamjan Marion <dmarion@me.com>
Fri, 27 Aug 2021 14:07:59 +0000 (14:07 +0000)
set the right data length to decode the packet properly.

Type: fix

Signed-off-by: Sivaprasad Tummala <Sivaprasad.Tummala@intel.com>
Change-Id: I6a35fa54851496d0a958f1a64a547b7f08bb4c19

src/plugins/snort/daq_vpp.c

index ec89b0c..91bcb51 100644 (file)
@@ -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;