From a48f679a728472de11a2264e589f01b31f4f2a98 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sun, 20 May 2012 16:00:28 +0200 Subject: Move filter_hash_header definition to C file * libbpf/bpf_impl.h (filter_hash_header): Move definition... * libbpf/bpf_impl.c: ... to this file. --- libbpf/bpf_impl.c | 2 ++ libbpf/bpf_impl.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3