Skip to content

Commit 68f9f9c

Browse files
Georg Kohmannummakynes
authored andcommitted
netfilter: Drop fragmented ndisc packets assembled in netfilter
Fragmented ndisc packets assembled in netfilter not dropped as specified in RFC 6980, section 5. This behaviour breaks TAHI IPv6 Core Conformance Tests v6LC.2.1.22/23, V6LC.2.2.26/27 and V6LC.2.3.18. Setting IP6SKB_FRAGMENTED flag during reassembly. References: commit b800c3b ("ipv6: drop fragmented ndisc packets by default (RFC 6980)") Signed-off-by: Georg Kohmann <geokohma@cisco.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
1 parent 4f25434 commit 68f9f9c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

net/ipv6/netfilter/nf_conntrack_reasm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ static int nf_ct_frag6_reasm(struct frag_queue *fq, struct sk_buff *skb,
355355
ipv6_hdr(skb)->payload_len = htons(payload_len);
356356
ipv6_change_dsfield(ipv6_hdr(skb), 0xff, ecn);
357357
IP6CB(skb)->frag_max_size = sizeof(struct ipv6hdr) + fq->q.max_size;
358+
IP6CB(skb)->flags |= IP6SKB_FRAGMENTED;
358359

359360
/* Yes, and fold redundant checksum back. 8) */
360361
if (skb->ip_summed == CHECKSUM_COMPLETE)

0 commit comments

Comments
 (0)