Skip to content

Commit

Permalink
25: add cilium/ebpf example
Browse files Browse the repository at this point in the history
  • Loading branch information
mozillazg committed Aug 20, 2023
1 parent 111325d commit 9968711
Show file tree
Hide file tree
Showing 7 changed files with 396 additions and 0 deletions.
22 changes: 22 additions & 0 deletions 25-tc-parse-packet-with-direct-memory-access/cilium-ebpf/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@



## Usage

build:

```
$ make
```

run:

```
$ make run
$ printf 'HTTP/1.1 200 OK\nContent-Length: 0\n\n' |nc -l 9090 &
$ curl http://127.0.0.1:9090
$ make cat
```
121 changes: 121 additions & 0 deletions 25-tc-parse-packet-with-direct-memory-access/cilium-ebpf/bpf_bpfeb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
121 changes: 121 additions & 0 deletions 25-tc-parse-packet-with-direct-memory-access/cilium-ebpf/bpf_bpfel.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Loading

0 comments on commit 9968711

Please sign in to comment.