F-Stack / f-stack

F-Stack is an user space network development kit with high performance based on DPDK, FreeBSD TCP/IP stack and coroutine API.
http://www.f-stack.org
Other
3.82k stars 891 forks source link

Fix cplen calculation error in ff_hook_getsockname #814

Closed zhaozihanzzh closed 5 months ago

zhaozihanzzh commented 5 months ago

Dear authors, Thank you for developing and maintaining f-stack. Currently I'm trying to use f-stack's LD_PRELOAD function in my research. However, I encounter several problems. While debugging, I found that the cplen seems to be wrong in ff_hook_getsockname. By the way, now I'm still stuck at ff_hook_epoll_wait. It seems that ff_hook_epoll_wait can't get notified on the corresponding events when running a complicated application(possibly with several threads created with clone syscall). Any ideas?