diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-06-05 04:45:50 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-06-05 04:45:50 +0000 |
commit | 74cbbab0a8ba13b790cbf8aa62ade1a8cfc316a6 (patch) | |
tree | b0f957320172f50cb9543f54a8dc87f8af321dda /libbpf | |
parent | e97f28a07f68247728823207bc58571ab9323277 (diff) | |
parent | a48f679a728472de11a2264e589f01b31f4f2a98 (diff) |
Merge remote-tracking branch 'incubator/dde' into dde-upstream
Diffstat (limited to 'libbpf')
-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; |