LVS
lvs-devel
Google
 
Web LinuxVirtualServer.org

Re: [PATCH 16/26] IPVS: Add IPv6 xmit forwarding functions.

To: "Julius R. Volz" <juliusv@xxxxxxxxxx>
Subject: Re: [PATCH 16/26] IPVS: Add IPv6 xmit forwarding functions.
Cc: lvs-devel@xxxxxxxxxxxxxxx, netdev@xxxxxxxxxxxxxxx, horms@xxxxxxxxxxxx, davem@xxxxxxxxxxxxx, vbusam@xxxxxxxxxx
From: Brian Haley <brian.haley@xxxxxx>
Date: Wed, 11 Jun 2008 21:55:09 -0400
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 lvs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

<Prev in Thread] Current Thread [Next in Thread>