google / buzzer

Apache License 2.0
411 stars 28 forks source link

Change the way the ebpf programs execute to one that allows us to input data from a network packet #33

Closed thatjiaozi closed 1 year ago

thatjiaozi commented 1 year ago

With this way of executing a bpf program, we can read the data sent on the packet using skb_load_bytes_relative() helper function.

This also changes the interface of the ffi execute to receive a serialized proto instead, this makes things a bit more flexible.

thatjiaozi commented 1 year ago

Note: This pr is dependant of https://github.com/google/buzzer/pull/32

Let's review that one first