[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Wed, 11 Jun 2008 21:55:09 -0400
From: Brian Haley <brian.haley@...com>
To: "Julius R. Volz" <juliusv@...gle.com>
Cc: lvs-devel@...r.kernel.org, netdev@...r.kernel.org,
horms@...ge.net.au, davem@...emloft.net, vbusam@...gle.com
Subject: Re: [PATCH 16/26] IPVS: Add IPv6 xmit forwarding functions.
Julius R. Volz wrote:
> + /* mangle the packet */
> + if (pp->dnat_handler_v6 && !pp->dnat_handler_v6(skb, pp, cp))
> + goto tx_error;
> + ipv6_hdr(skb)->daddr = cp->daddr.v6;
ipv6_addr_copy().
> + /*
> + * Push down and install the IPIP header.
> + */
> + iph = ipv6_hdr(skb);
> + iph->version = 6;
> + iph->nexthdr = IPPROTO_IPV6;
> + iph->payload_len = old_iph->payload_len + sizeof(old_iph);
> + iph->priority = old_iph->priority;
> + memset(&iph->flow_lbl, 0, sizeof(iph->flow_lbl));
> + iph->daddr = rt->rt6i_dst.addr;
> + iph->saddr = cp->vaddr.v6; /* rt->rt6i_src.addr; */
ipv6_addr_copy().
-Brian
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists