X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=lib%2Ftest_bpf.c;h=94346b4d8984c5cfa88743be66b1880b929e4a60;hb=5bfb88a1636eadd55971ad23890356831a93325d;hp=93f45011a59d01ef017aa2a1a4a68ee6f4060bce;hpb=7fcbc230c6f0ee96d397e30d061ef4995879b835;p=cascardo%2Flinux.git diff --git a/lib/test_bpf.c b/lib/test_bpf.c index 93f45011a59d..94346b4d8984 100644 --- a/lib/test_bpf.c +++ b/lib/test_bpf.c @@ -5485,6 +5485,7 @@ static struct sk_buff *populate_skb(char *buf, int size) skb->hash = SKB_HASH; skb->queue_mapping = SKB_QUEUE_MAP; skb->vlan_tci = SKB_VLAN_TCI; + skb->vlan_proto = htons(ETH_P_IP); skb->dev = &dev; skb->dev->ifindex = SKB_DEV_IFINDEX; skb->dev->type = SKB_DEV_TYPE;