Skip to content

Commit

Permalink
loxilb-io/loxilb#675 Initial support for proxy protocol v2
Browse files Browse the repository at this point in the history
  • Loading branch information
TrekkieCoder committed Nov 26, 2024
1 parent 1cd2d8c commit 85c2f86
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions kernel/llb_kern_cdefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,6 @@ dp_ins_ppv2(void *md, struct xfi *xf)
dp_ipv4_new_csum((void *)iph);

struct tcphdr *tcp = DP_ADD_PTR(DP_PDATA(md), xf->pm.l4_off + len);
bpf_printk("tcp off %lu", xf->pm.l4_off + len);
if (tcp + 1 > dend) {
LLBS_PPLN_DROPC(xf, LLB_PIPE_RC_PLERR);
return -1;
Expand Down Expand Up @@ -1110,7 +1109,6 @@ dp_ins_ppv2(void *md, struct xfi *xf)
}
memcpy(ntop, top, 12);
ppv2h = (void *)(ntop + 12);
bpf_printk("ntop ----\n");
dp_populate_ppv2(md, xf, ppv2h);
} else if (doff != 20) {
LLBS_PPLN_DROPC(xf, LLB_PIPE_RC_PLERR);
Expand Down

0 comments on commit 85c2f86

Please sign in to comment.