Closed singchia closed 9 months ago
Since you are touching this file, could you add the following check in the bpf program?
struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet));
struct ip_t *ip = cursor_advance(cursor, sizeof(*ip));
+ if (ip->ver != 4)
+ return 0;
+
The example assumes ipv4 so let us enforce it in the bpf program.
Since you are touching this file, could you add the following check in the bpf program?
struct ethernet_t *ethernet = cursor_advance(cursor, sizeof(*ethernet)); struct ip_t *ip = cursor_advance(cursor, sizeof(*ip)); + if (ip->ver != 4) + return 0; +
The example assumes ipv4 so let us enforce it in the bpf program.
sure
which should be handled in python way
From:
To: