eunomia-bpf / eunomia-bpf/bpf-developer-tutorial

[BUG] sockops port error

Offen
#115 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
bug help wanted
Vorherrschende Sprache
C
Sterne
4.3k
Forks
602
Ø Merge
1 T. 10 Std.
Gemergte PRs (30 T.)
1

Beschreibung

**Describe the bug**
A clear and concise description of what the bug is.
![image](https://github.com/eunomia-bpf/bpf-developer-tutorial/assets/6583143/6eefdd67-4ef5-40b0-a459-8011f5ec0f77)

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

![image](https://github.com/eunomia-bpf/bpf-developer-tutorial/assets/6583143/a5884b26-02b6-4927-a600-54c88e09c7ac)
上图是正常的

![image](https://github.com/eunomia-bpf/bpf-developer-tutorial/assets/6583143/9a758fb5-72ac-4cf0-b36d-55a8a8f24db5)
上图是错误的
我不了解箭头所指的端口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.

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.