Allocate stats with MAX_CPUS and check for NULL index to attempt to fix seg fault on issue #10.
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#define MAX_PCKT_LENGTH 65535
|
||||
#define MAX_FILTERS 100
|
||||
#define MAX_TRACK_IPS 100000
|
||||
#define MAX_CPUS 256
|
||||
|
||||
#ifdef __BPF__
|
||||
#define likely(x) __builtin_expect(!!(x), 1)
|
||||
|
||||
Reference in New Issue
Block a user