Skip to content

Commit

Permalink
loxilb-io/loxilb#675 Fixed minor issue in fullnat mode for proxy prot…
Browse files Browse the repository at this point in the history
…ocol v2
  • Loading branch information
TrekkieCoder committed Nov 27, 2024
1 parent 9d182a2 commit 46ead7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kernel/llb_kern_cdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ dp_set_tcp_src_ip6(void *md, struct xfi *xf, __be32 *xip)
bpf_l4_csum_replace(md, tcp_csum_off, old_sip[3], xip[3], BPF_F_PSEUDO_HDR |sizeof(*xip));
bpf_skb_store_bytes(md, ip_src_off, xip, sizeof(xf->l34m.saddr), 0);

DP_XADDR_CP(xf->l34m.saddr, xip);
//DP_XADDR_CP(xf->l34m.saddr, xip);

return 0;
}
Expand All @@ -1267,7 +1267,7 @@ dp_set_tcp_src_ip(void *md, struct xfi *xf, __be32 xip)
bpf_l3_csum_replace(md, ip_csum_off, old_sip, xip, sizeof(xip));
bpf_skb_store_bytes(md, ip_src_off, &xip, sizeof(xip), 0);

xf->l34m.saddr4 = xip;
//xf->l34m.saddr4 = xip;

return 0;
}
Expand Down

0 comments on commit 46ead7d

Please sign in to comment.