Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
e09a233
)
snort: fix incorrect data length for snort inspection
63/33563/2
author
Sivaprasad Tummala
<Sivaprasad.Tummala@intel.com>
Sun, 22 Aug 2021 09:39:35 +0000
(15:09 +0530)
committer
Damjan 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
patch
|
blob
|
history
diff --git
a/src/plugins/snort/daq_vpp.c
b/src/plugins/snort/daq_vpp.c
index
ec89b0c
..
91bcb51
100644
(file)
--- 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;