From: Alex Gartrell Subject: [PATCH net-next,v2 07/13] ipvs: Use outer header in ip_vs_bypass_xmit_v6 Date: Mon, 24 Aug 2015 16:44:39 -0700 Message-ID: <1440459885-1103938-7-git-send-email-agartrell@fb.com> References: <1440459885-1103938-1-git-send-email-agartrell@fb.com> Mime-Version: 1.0 Return-path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=fb.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=facebook; bh=QXiM7pXZxfCQdU4VOi0sF4gLhIaka6daOapj3LGtZlQ=; b=U2M/oo1E4imZM+H7sqSiZZLiV1IaHCEb4Z6eJztHxOygQQ31mmVvmIgZuYVnUPl/H1tr Jw6BO0MPvgOwMaHW8Hqv5SLtMiqlz431+C+HjlQZun32dShxVh5e+cX68r0R5cexbC/W GdDAtuMDDhOT0bHFWnCEHC88vju/I++wRNo= In-Reply-To: <1440459885-1103938-1-git-send-email-agartrell@fb.com> Sender: lvs-devel-owner@vger.kernel.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: horms@verge.net.au, ja@ssi.bg, lvs-devel@vger.kernel.org Cc: alexgartrell@gmail.com, kernel-team@fb.com, Alex Gartrell The ip_vs_iphdr may refer to an internal header, so use the outer one instead. Signed-off-by: Alex Gartrell --- net/netfilter/ipvs/ip_vs_xmit.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfilter/ipvs/ip_vs_xmit.c index 9a26f2e..af5e9d3 100644 --- a/net/netfilter/ipvs/ip_vs_xmit.c +++ b/net/netfilter/ipvs/ip_vs_xmit.c @@ -656,10 +656,12 @@ int ip_vs_bypass_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp, struct ip_vs_protocol *pp, struct ip_vs_iphdr *ipvsh) { + struct ipv6hdr *iph = ipv6_hdr(skb); + EnterFunction(10); rcu_read_lock(); - if (__ip_vs_get_out_rt_v6(cp->af, skb, NULL, &ipvsh->daddr.in6, NULL, + if (__ip_vs_get_out_rt_v6(cp->af, skb, NULL, &iph->daddr, NULL, ipvsh, 0, IP_VS_RT_MODE_NON_LOCAL) < 0) goto tx_error; -- Alex Gartrell