Skip to content

Commit f26d93b

Browse files
committed
add 50-tc-extract-http-header
1 parent e314475 commit f26d93b

File tree

10 files changed

+596
-0
lines changed

10 files changed

+596
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ events.txt
2525
/05-get-process-info-plus/
2626
Vagrantfile.local
2727
/9999-playground/
28+
main.bpf.c.bak

50-tc-extract-http-header/README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
3+
See [cilium-ebpf](./cilium-ebpf)
4+
5+
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../common/cilium-ebpf.Makefile
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
3+
4+
## Usage
5+
6+
build:
7+
8+
```
9+
$ make
10+
```
11+
12+
run:
13+
14+
```
15+
$ make run
16+
17+
$ printf 'HTTP/1.1 200 OK\nContent-Length: 0\n\n' |nc -l 9090 &
18+
19+
$ curl http://127.0.0.1:9090
20+
21+
```

50-tc-extract-http-header/cilium-ebpf/bpf_bpfeb.go

Lines changed: 115 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

50-tc-extract-http-header/cilium-ebpf/bpf_bpfel.go

Lines changed: 115 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.

0 commit comments

Comments
 (0)