foniod / redbpf

Rust library for building and running BPF/eBPF modules
Apache License 2.0
1.71k stars 136 forks source link

Fix echo example #297

Closed rhdxmr closed 2 years ago

rhdxmr commented 2 years ago

Trigger stream parser to process packets that were already received by tcp receive queue before echo sockmap was set. Setting SO_RCVLOWAT calls tcp_set_rcvlowat in linux/net/ipv4/tcp.c of the Linux kernel and then the function calls tcp_data_ready.

Signed-off-by: Junyeong Jeong rhdxmr@gmail.com