Skip to content

Commit

Permalink
Disable failing bpf_tcp_send_ack
Browse files Browse the repository at this point in the history
  • Loading branch information
ccanel committed Apr 16, 2024
1 parent 8e7120d commit 3c6805e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions ratemon/runtime/new/ratemon_test.bpf.c
Original file line number Diff line number Diff line change
Expand Up @@ -199,10 +199,11 @@ int test_iter_3(struct bpf_iter__bpf_map_elem *ctx) {
u32 r = 0;
BPF_CORE_READ_INTO(&r, *val, rcv_nxt);

u64 ret = bpf_tcp_send_ack(*val, r);
if (ret != 0) {
bpf_printk("TCP send ack failed");
}
// This only works in struct_ops!
// u64 ret = bpf_tcp_send_ack(*val, r);
// if (ret != 0) {
// bpf_printk("TCP send ack failed");
// }

bpf_printk("test_map_3: seq_num: %u, key %u, value %u", seq_num, *key, r);

Expand Down

0 comments on commit 3c6805e

Please sign in to comment.