Re: [PATCH 09/18] netfilter: ipv6: add IPv6 NAT support

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Monday 2012-08-20 05:39, Patrick McHardy wrote:
>+static struct nf_hook_ops nf_nat_ipv6_ops[] __read_mostly = {
>+	/* Before packet filtering, change destination */
>+	{
>+		.hook		= nf_nat_ipv6_in,
>+		.owner		= THIS_MODULE,
>+		.pf		= NFPROTO_IPV6,
>+		.hooknum	= NF_INET_PRE_ROUTING,
>+		.priority	= NF_IP_PRI_NAT_DST,

NF_IP6_PRI_NAT_DST

>+		.hook		= nf_nat_ipv6_out,
>+		.owner		= THIS_MODULE,
>+		.pf		= NFPROTO_IPV6,
>+		.hooknum	= NF_INET_POST_ROUTING,
>+		.priority	= NF_IP_PRI_NAT_SRC,

IP6 too... (2 more occurrences)

>+static void nf_nat_ipv6_csum_recalc(struct sk_buff *skb,
>+				    u8 proto, void *data, __sum16 *check,
>+				    int datalen, int oldlen)
>+{
>+	const struct ipv6hdr *ipv6h = ipv6_hdr(skb);
>+	struct rt6_info *rt = (struct rt6_info *)skb_dst(skb);
>+
>+	if (skb->ip_summed != CHECKSUM_PARTIAL) {

Maybe invert to == CHECKSUM_PARTIAL like in p06/18.

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux