aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2023-03-03 20:25:17 +0000
committerDamjan Marion <dmarion@0xa5.net>2023-03-06 17:51:56 +0000
commiteb415414b494a8f07224c3fcdf877259aebcda2b (patch)
tree5d87538310869c57f6d1ebbc8bdc4a40c7998d87 /src
parent258aac905cd20f2a92ad2bd043770cf4ce4afc60 (diff)
af_packet: fix the first packet offset
Type: fix Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: I927ba4e6f10ae4527f339a890c3a0de33a84b7eb
Diffstat (limited to 'src')
-rw-r--r--src/plugins/af_packet/node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/af_packet/node.c b/src/plugins/af_packet/node.c
index 0ea4b3dfea7..8612863a780 100644
--- a/src/plugins/af_packet/node.c
+++ b/src/plugins/af_packet/node.c
@@ -306,7 +306,7 @@ af_packet_v3_device_input_fn (vlib_main_t *vm, vlib_node_runtime_t *node,
else
{
num_pkts = bd->hdr.bh1.num_pkts;
- rx_frame_offset = sizeof (block_desc_t);
+ rx_frame_offset = bd->hdr.bh1.offset_to_first_pkt;
total++;
if (TP_STATUS_BLK_TMO & bd->hdr.bh1.block_status)