You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
341 B
22 lines
341 B
#ifndef __BPF_SHARED__ |
|
#define __BPF_SHARED__ |
|
|
|
enum { |
|
BPF_MAP_ID_PROTO, |
|
BPF_MAP_ID_QUEUE, |
|
BPF_MAP_ID_DROPS, |
|
__BPF_MAP_ID_MAX, |
|
#define BPF_MAP_ID_MAX __BPF_MAP_ID_MAX |
|
}; |
|
|
|
struct count_tuple { |
|
long packets; /* type long for lock_xadd() */ |
|
long bytes; |
|
}; |
|
|
|
struct count_queue { |
|
long total; |
|
long mismatch; |
|
}; |
|
|
|
#endif /* __BPF_SHARED__ */
|
|
|