IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeout" message when enabling connection track
Subsystems (4)
RFC PATCH 2/5 IPv6:netfilter: Send an ICMPv6 "Fragment Reassembly Timeout" message when enabling connection track
An end host with IPv6 connection track enable should send an ICMP "Fragment Reassembly Timeout" message when defraging timeout according to the section 4.5 in RFC2460.
This patch supports it and adds counter value of Ip6ReasmTimeout and Ip6ReasmFails.
Quote Begin:
Section 4.5 in RFC2460.
If insufficient fragments are received to complete reassembly of a packet within 60 seconds of the reception of the first-arriving fragment of that packet, reassembly of that packet must be abandoned and all the fragments that have been received for that packet must be discarded. If the first fragment (i.e., the one with a Fragment Offset of zero) has been received, an ICMP Time Exceeded -- Fragment Reassembly Time Exceeded message should be sent to the source of that fragment.
Quote End.
--- include/linux/skbuff.h | 5 +++ net/ipv6/netfilter/nf_conntrack_reasm.c | 48 ++++++++++++++++++++++++++++++- net/ipv6/route.c | 1 + 3 files changed, 53 insertions(+), 1 deletions(-)
include/linux/skbuff.h +5 -0
@@ -431,6 +431,11 @@ static inline struct rtable *skb_rtable(const struct sk_buff *skb)return (struct rtable *)skb_dst (skb); } +static inline struct rt6_info *skb_r6table (const struct sk_buff *skb) +{ +return (struct rt6_info *)skb_dst (skb); +} +extern void kfree_skb (struct sk_buff *skb);extern void consume_skb (struct sk_buff *skb);extern void __kfree_skb (struct sk_buff *skb);
net/ipv6/netfilter/nf_conntrack_reasm.c +47 -1
83 lines not on this page · raw message
net/ipv6/route.c +1 -0
@@ -802,6 +802,7 @@ void ip6_route_input(struct sk_buff *skb)skb_dst_set (skb,fib6_rule_lookup (net, &fl, flags, ip6_pol_route_input)); } +EXPORT_SYMBOL (ip6_route_input);static struct rt6_info *ip6_pol_route_output (struct net *net,struct fib6_table *table,struct flowi *fl,int flags)
Signature · 1 line
1.6.3.3