Skip to content

Commit

Permalink
bpf/ingress: fix ack seq
Browse files Browse the repository at this point in the history
  • Loading branch information
hack3ric committed Dec 1, 2024
1 parent 096c5af commit 3e6e3ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bpf/ingress.c
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ int ingress_handler(struct xdp_md* xdp) {
will_send_ctrl_packet = false;
} else br_likely {
will_send_ctrl_packet = will_drop = false;
conn->ack_seq += payload_len;
conn->ack_seq = next_ack_seq(tcp, payload_len);
__u32 peer_mss = conn->peer_mss ?: 1460;
__u32 upper_bound = 20 * peer_mss;
__u32 lower_bound = 2 * peer_mss;
Expand Down

0 comments on commit 3e6e3ff

Please sign in to comment.