Skip to content
Commit 4319cc0c authored by Fernando Luis Vazquez Cao's avatar Fernando Luis Vazquez Cao Committed by Pablo Neira Ayuso
Browse files

netfilter: IPv6: initialize TOS field in REJECT target module



The IPv6 header is not zeroed out in alloc_skb so we must initialize
it properly unless we want to see IPv6 packets with random TOS fields
floating around. The current implementation resets the flow label
but this could be changed if deemed necessary.

We stumbled upon this issue when trying to apply a mangle rule to
the RST packet generated by the REJECT target module.

Signed-off-by: default avatarFernando Luis Vazquez Cao <fernando@oss.ntt.co.jp>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent 7a4f0761
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