ebpf fix 2
All checks were successful
Build and Deploy MITM Webserver / build (push) Successful in 9s

This commit is contained in:
2026-03-07 15:44:48 +01:00
parent 6ad2dd2435
commit e73726fd1b
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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,