Skip to content

Commit

Permalink
examples: fix vlan_learning example
Browse files Browse the repository at this point in the history
BPF_HASH declaration fixed.
  • Loading branch information
pbhole committed Sep 4, 2017
1 parent 5888989 commit 53e3afd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/networking/vlan_learning/vlan_learning.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53e3afd

Please sign in to comment.