|
@@ -6,6 +6,7 @@
|
|
*/
|
|
*/
|
|
#define KBUILD_MODNAME "foo"
|
|
#define KBUILD_MODNAME "foo"
|
|
#include <linux/if_ether.h>
|
|
#include <linux/if_ether.h>
|
|
|
|
+#include <linux/if_vlan.h>
|
|
#include <linux/ip.h>
|
|
#include <linux/ip.h>
|
|
#include <linux/ipv6.h>
|
|
#include <linux/ipv6.h>
|
|
#include <linux/in.h>
|
|
#include <linux/in.h>
|
|
@@ -108,11 +109,6 @@ static int parse_ipv6(void *data, uint64_t nh_off, void *data_end)
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
|
|
-struct vlan_hdr {
|
|
|
|
- uint16_t h_vlan_TCI;
|
|
|
|
- uint16_t h_vlan_encapsulated_proto;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
SEC("varlen")
|
|
SEC("varlen")
|
|
int handle_ingress(struct __sk_buff *skb)
|
|
int handle_ingress(struct __sk_buff *skb)
|
|
{
|
|
{
|