summaryrefslogtreecommitdiffstats
path: root/src/plugins/af_packet
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/af_packet')
-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)