Cleaned code.
This commit is contained in:
@@ -5,8 +5,7 @@
|
||||
|
||||
#define MAX_PCKT_LENGTH 65535
|
||||
#define MAX_FILTERS 50
|
||||
#define MAX_CPUS 128
|
||||
#define LRU_MAP_SIZE 16384
|
||||
#define MAX_TRACK_IPS 30000
|
||||
|
||||
struct tcpopts
|
||||
{
|
||||
|
||||
@@ -63,7 +63,7 @@ struct bpf_map_def SEC("maps") ip_stats_map =
|
||||
.type = BPF_MAP_TYPE_PERCPU_HASH,
|
||||
.key_size = sizeof(uint32_t),
|
||||
.value_size = sizeof(struct xdpfw_ip_stats),
|
||||
.max_entries = LRU_MAP_SIZE
|
||||
.max_entries = MAX_TRACK_IPS
|
||||
};
|
||||
|
||||
SEC("xdp_prog")
|
||||
|
||||
@@ -7,7 +7,6 @@
|
||||
#include <inttypes.h>
|
||||
#include <time.h>
|
||||
#include <getopt.h>
|
||||
#include <sys/sysinfo.h>
|
||||
|
||||
#include <net/if.h>
|
||||
#include <linux/if_link.h>
|
||||
|
||||
Reference in New Issue
Block a user