| 28 |
|
#ifndef INCLUDED_conf_class_h |
| 29 |
|
#define INCLUDED_conf_class_h |
| 30 |
|
|
| 31 |
+ |
#define CLASS_FLAGS_RANDOM_IDLE 0x1 |
| 32 |
+ |
#define CLASS_FLAGS_HIDE_IDLE_FROM_OPERS 0x2 |
| 33 |
+ |
|
| 34 |
|
struct ClassItem |
| 35 |
|
{ |
| 36 |
|
char *name; |
| 47 |
|
unsigned int max_global; |
| 48 |
|
unsigned int max_ident; |
| 49 |
|
unsigned int max_perip; |
| 50 |
+ |
unsigned int min_idle; |
| 51 |
+ |
unsigned int max_idle; |
| 52 |
|
unsigned int cidr_bitlen_ipv4; |
| 53 |
|
unsigned int cidr_bitlen_ipv6; |
| 54 |
|
unsigned int number_per_cidr; |
| 55 |
+ |
unsigned int flags; |
| 56 |
|
unsigned int active; |
| 57 |
|
}; |
| 58 |
|
|
| 60 |
|
extern struct ClassItem *class_default; |
| 61 |
|
|
| 62 |
|
extern struct ClassItem *class_make(void); |
| 63 |
+ |
extern struct ClassItem *get_class_ptr(const dlink_list *const); |
| 64 |
|
extern const dlink_list *class_get_list(void); |
| 65 |
|
extern void class_free(struct ClassItem *); |
| 66 |
|
extern void class_init(void); |