summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryangwei <[email protected]>2024-05-06 20:09:25 +0800
committeryangwei <[email protected]>2024-05-06 20:09:25 +0800
commit03054ea70cd2473a7675d5351f90261bdd53db9e (patch)
tree857ef1dbc9912ae1321a39f89d488d8235920205
parent4ac49a38a1b0ba3a911aa3a3b41da3a649a83d13 (diff)
🐞 fix( mpls entry): ctrl packet ignore len mismatchFix-ctrl-pkt-error
-rw-r--r--src/dealpkt/deal_mpls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dealpkt/deal_mpls.c b/src/dealpkt/deal_mpls.c
index ad46995..42db204 100644
--- a/src/dealpkt/deal_mpls.c
+++ b/src/dealpkt/deal_mpls.c
@@ -196,7 +196,7 @@ int mpls_uc_entry(struct streaminfo_private *pfstream_pr,const void *this_layer_
inject_to_eth_flag = 1;
}
- if (0 == inject_to_eth_flag)
+ if (0 == inject_to_eth_flag || raw_pkt->is_ctrl_pkt==1)
{
ret = ipv4_entry(pstream_pr, next_layer_hdr, thread_num, routedir, raw_pkt, next_layer_offset);
}
@@ -223,7 +223,7 @@ int mpls_uc_entry(struct streaminfo_private *pfstream_pr,const void *this_layer_
inject_to_eth_flag = 1;
}
- if (0 == inject_to_eth_flag)
+ if (0 == inject_to_eth_flag || raw_pkt->is_ctrl_pkt==1)
{
ret = ipv6_entry(pstream_pr, next_layer_hdr, thread_num, routedir, raw_pkt, next_layer_offset);
}