summaryrefslogtreecommitdiffstats
path: root/src/vnet/l2/l2_flood.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/l2/l2_flood.c')
-rw-r--r--src/vnet/l2/l2_flood.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/vnet/l2/l2_flood.c b/src/vnet/l2/l2_flood.c
index 8908c4312d3..aeac8ff10d8 100644
--- a/src/vnet/l2/l2_flood.c
+++ b/src/vnet/l2/l2_flood.c
@@ -223,9 +223,7 @@ l2flood_node_fn (vlib_main_t * vm,
n_cloned = vlib_buffer_clone (vm, bi0,
msm->clones[thread_index],
n_clones,
- (vnet_buffer (b0)->l2.l2_len +
- sizeof (udp_header_t) +
- 2 * sizeof (ip6_header_t)));
+ VLIB_BUFFER_CLONE_HEAD_SIZE);
if (PREDICT_FALSE (n_cloned != n_clones))
{