add code for detached

This commit is contained in:
yunwei37
2023-05-31 00:15:40 +08:00
committed by 云微
parent 899f332f14
commit e71352c29b
9 changed files with 1135 additions and 5 deletions

View File

@@ -70,7 +70,7 @@ iperf3-9516 [001] ..s1 22500.634536: 0: <<< ipv4 op = 5, port 4135 --> 19095
sudo ./unload.sh
```
## 参考资料和源代码来源
## 参考资料
- <https://github.com/zachidan/ebpf-sockops>
- <https://github.com/merbridge/merbridge>

View File

@@ -33,7 +33,7 @@ int bpf_sockmap(struct bpf_sock_ops *skops)
family = skops->family;
op = skops->op;
//printk("<<< op %d, port = %d --> %d\n", op, skops->local_port, skops->remote_port);
printk("<<< op %d, port = %d --> %d\n", op, skops->local_port, skops->remote_port);
switch (op) {
case BPF_SOCK_OPS_PASSIVE_ESTABLISHED_CB:
case BPF_SOCK_OPS_ACTIVE_ESTABLISHED_CB: