Skip to content
Commit 63137bc5 authored by Timothée COCAULT's avatar Timothée COCAULT Committed by Pablo Neira Ayuso
Browse files

netfilter: ebtables: Fixes dropping of small packets in bridge nat

Fixes an error causing small packets to get dropped. skb_ensure_writable
expects the second parameter to be a length in the ethernet payload.=20
If we want to write the ethernet header (src, dst), we should pass 0.
Otherwise, packets with small payloads (< ETH_ALEN) will get dropped.

Fixes: c1a83116

 ("netfilter: bridge: convert skb_make_writable to skb_ensure_writable")
Signed-off-by: default avatarTimothée COCAULT <timothee.cocault@orange.com>
Reviewed-by: default avatarFlorian Westphal <fw@strlen.de>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 68f9f9c2
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment