Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] sockops port error #115

Open
haolipeng opened this issue Mar 14, 2024 · 0 comments
Open

[BUG] sockops port error #115

haolipeng opened this issue Mar 14, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@haolipeng
Copy link

haolipeng commented Mar 14, 2024

Describe the bug
A clear and concise description of what the bug is.
image

./trace_bpf_output.sh的输出结构有bug,显示的passive和active连接的源端口和目的端口都不正确。

image
上图是正常的

image
上图是错误的
我不了解箭头所指的端口4是如何来的呢?为啥会出现这个问题呢

To Reproduce
Steps to reproduce the behavior:

  1. 编译后执行load.sh脚本,加载成功
  2. python命令行启动python3 -m http.server
  3. 启动server,使用命令iperf3 -s -p 5001
  4. 启动另一个终端A,执行curl http://0.0.0.0:8000/
  5. 在另一个终端B,执行./trace_bpf_output.sh获取ebpf程序的输出

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Ubuntu
  • Version 24.04

Additional context
Add any other context about the problem here.

@haolipeng haolipeng added the bug Something isn't working label Mar 14, 2024
@yunwei37 yunwei37 changed the title [BUG] [BUG] sockops port error Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant