ebpf fix 2
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s
This commit is contained in:
@@ -18,7 +18,7 @@ struct {
|
||||
} packet_counter SEC(".maps");
|
||||
|
||||
SEC("classifier")
|
||||
int classifier(struct __sk_buff *skb) {
|
||||
int mark_packet_id_prog(struct __sk_buff *skb) {
|
||||
__u32 key = 0;
|
||||
struct counter_state *state = bpf_map_lookup_elem(&packet_counter, &key);
|
||||
__u32 next = 1;
|
||||
|
||||
@@ -16,7 +16,7 @@ struct capture_header {
|
||||
} __attribute__((packed));
|
||||
|
||||
SEC("classifier")
|
||||
int classifier(struct __sk_buff *skb) {
|
||||
int prepend_capture_header_prog(struct __sk_buff *skb) {
|
||||
struct capture_header hdr = {
|
||||
.magic = bpf_htonl(CAPTURE_MAGIC),
|
||||
.version = CAPTURE_VERSION,
|
||||
|
||||
Reference in New Issue
Block a user