netfilter 00/02: netfilter -stable fixes
Subsystems (3)
These patches against the last -stable version fix two netfilter bugs:
- IPv6 conntrack incorrectly created inverted tuples for Node Information Requests
- the sctp match doesn't work at all when matching on the entire chunkmap
Please apply, thanks.
net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c | 4 ++-- net/netfilter/xt_sctp.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
Eric Leblond (1):
netfilter: fix tuple inversion for Node information request
Qu Haoran (1):
netfilter: xt_sctp: sctp chunk mapping doesn't work
netfilter 01/02: fix tuple inversion for Node information request
commit 796b5d184b4df1aae55894bf476959da83e25324
Author: Eric Leblond <[email protected]> Date: Thu Feb 12 08:00:35 2009 +0100
netfilter: fix tuple inversion for Node information request
Upstream commit: a51f42f3c
The patch fixes a typo in the inverse mapping of Node Information request. Following draft-ietf-ipngwg-icmp-name-lookups-09, "Querier" sends a type 139 (ICMPV6_NI_QUERY) packet to "Responder" which answer with a type 140 (ICMPV6_NI_REPLY) packet.
net/ipv6/netfilter/nf_conntrack_proto_icmpv6.c +2 -2
@@ -49,8 +49,8 @@ static bool icmpv6_pkt_to_tuple(const struct sk_buff *skb,static const u_int8_t invmap[] = { [ICMPV6_ECHO_REQUEST -128 ] =ICMPV6_ECHO_REPLY +1 , [ICMPV6_ECHO_REPLY -128 ] =ICMPV6_ECHO_REQUEST +1 , - [ICMPV6_NI_QUERY -128 ] =ICMPV6_NI_QUERY +1 , - [ICMPV6_NI_REPLY -128 ] =ICMPV6_NI_REPLY +1 + [ICMPV6_NI_QUERY -128 ] =ICMPV6_NI_REPLY +1 , + [ICMPV6_NI_REPLY -128 ] =ICMPV6_NI_QUERY +1 }; static bool icmpv6_invert_tuple(struct nf_conntrack_tuple *tuple,
netfilter 02/02: xt_sctp: sctp chunk mapping doesn't work
In reply to Patrick McHardycommit f3568e644ddf628aab11ce2fc8341e4b12654e0f
Author: Qu Haoran <[email protected]> Date: Thu Feb 12 08:03:46 2009 +0100
netfilter: xt_sctp: sctp chunk mapping doesn't work
Upstream commit: d4e2675a
When user tries to map all chunks given in argument, kernel works on a copy of the chunkmap, but at the end it doesn't check the copy, but the orginal one.
net/netfilter/xt_sctp.c +1 -1
@@ -105,7 +105,7 @@ match_packet(const struct sk_buff *skb,switch (chunk_match_type) {case SCTP_CHUNK_MATCH_ALL : -return SCTP_CHUNKMAP_IS_CLEAR (info->chunkmap); +return SCTP_CHUNKMAP_IS_CLEAR (chunkmapcopy);case SCTP_CHUNK_MATCH_ANY :return false;case SCTP_CHUNK_MATCH_ONLY :