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");
|
} packet_counter SEC(".maps");
|
||||||
|
|
||||||
SEC("classifier")
|
SEC("classifier")
|
||||||
int classifier(struct __sk_buff *skb) {
|
int mark_packet_id_prog(struct __sk_buff *skb) {
|
||||||
__u32 key = 0;
|
__u32 key = 0;
|
||||||
struct counter_state *state = bpf_map_lookup_elem(&packet_counter, &key);
|
struct counter_state *state = bpf_map_lookup_elem(&packet_counter, &key);
|
||||||
__u32 next = 1;
|
__u32 next = 1;
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ struct capture_header {
|
|||||||
} __attribute__((packed));
|
} __attribute__((packed));
|
||||||
|
|
||||||
SEC("classifier")
|
SEC("classifier")
|
||||||
int classifier(struct __sk_buff *skb) {
|
int prepend_capture_header_prog(struct __sk_buff *skb) {
|
||||||
struct capture_header hdr = {
|
struct capture_header hdr = {
|
||||||
.magic = bpf_htonl(CAPTURE_MAGIC),
|
.magic = bpf_htonl(CAPTURE_MAGIC),
|
||||||
.version = CAPTURE_VERSION,
|
.version = CAPTURE_VERSION,
|
||||||
|
|||||||
Reference in New Issue
Block a user