diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-05-20 16:00:28 +0200 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-05-20 16:00:28 +0200 |
commit | a48f679a728472de11a2264e589f01b31f4f2a98 (patch) | |
tree | 351e3e0fc419f5c50623ba93c268510484f2b42d | |
parent | aeae977c23470c78cac1c886958c58a37f206b96 (diff) |
Move filter_hash_header definition to C file
* libbpf/bpf_impl.h (filter_hash_header): Move definition...
* libbpf/bpf_impl.c: ... to this file.
-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; |