examples: fix vlan_learning example
authorPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Mon, 4 Sep 2017 00:26:08 +0000 (09:26 +0900)
committerPrashant Bhole <bhole_prashant_q7@lab.ntt.co.jp>
Mon, 4 Sep 2017 00:26:08 +0000 (09:26 +0900)
BPF_HASH declaration fixed.

examples/networking/vlan_learning/vlan_learning.c

index 175c9d9..3774d74 100644 (file)
@@ -15,7 +15,7 @@ struct ifindex_leaf_t {
 BPF_HASH(egress, int, struct ifindex_leaf_t, 4096);
 
 // redirect based on mac -> out_ifindex (config-driven)
-BPF_HASH(ingress, struct ifindex_leaf_t, 4096);
+BPF_HASH(ingress, u64, struct ifindex_leaf_t, 4096);
 
 int handle_phys2virt(struct __sk_buff *skb) {
   // only handle vlan packets