summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
author陆秋文 <[email protected]>2023-09-11 07:45:57 +0000
committer陆秋文 <[email protected]>2023-09-11 07:45:57 +0000
commit83b04c940717d8d34ca160121729e6b756b90832 (patch)
tree4475706d81ada311646c60b1348eab4add5208c4 /app
parentdcb971312ba13365a6ea5e75ffd7dcd4233e692d (diff)
为Packet Parser增加边界检查。v4.6.52-20230912
Diffstat (limited to 'app')
-rw-r--r--app/src/mrb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/mrb.c b/app/src/mrb.c
index ed8a5af..eafd40a 100644
--- a/app/src/mrb.c
+++ b/app/src/mrb.c
@@ -213,7 +213,7 @@ void marsio_buff_do_rehash(struct mr_instance * mr_instance, marsio_buff_t * m)
/* parse the packet again */
struct pkt_parser pkt_parser;
pkt_parser_init(&pkt_parser, &mrb_metadata->pkt_parser_result, LAYER_TYPE_ALL, MR_PKT_PARSER_LAYERS_MAX);
- complex_parser_ether(&pkt_parser, rte_pktmbuf_mtod(mbuf, const char *));
+ pkt_parser_exec(&pkt_parser, mbuf);
struct rte_mbuf * mbufs[1] = {mbuf};
struct pkt_parser_result * parser_results[1] = {&mrb_metadata->pkt_parser_result};