diff options
-rw-r--r-- | libbpf/bpf_impl.c | 2 | ||||
-rw-r--r-- | libbpf/bpf_impl.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/libbpf/bpf_impl.c b/libbpf/bpf_impl.c index b2dafd16..c8a250b0 100644 --- a/libbpf/bpf_impl.c +++ b/libbpf/bpf_impl.c @@ -45,6 +45,8 @@ #include "queue.h" #include "util.h" +static struct net_hash_header filter_hash_header[N_NET_HASH]; + /* * Execute the filter program starting at pc on the packet p * wirelen is the length of the original packet diff --git a/libbpf/bpf_impl.h b/libbpf/bpf_impl.h index e611491f..9073fdac 100644 --- a/libbpf/bpf_impl.h +++ b/libbpf/bpf_impl.h @@ -134,7 +134,7 @@ struct net_hash_header { int n_keys; /* zero if not used */ int ref_count; /* reference count */ net_hash_entry_t table[NET_HASH_SIZE]; -} filter_hash_header[N_NET_HASH]; +}; typedef struct net_hash_header *net_hash_header_t; |