20 lines
375 B
C
20 lines
375 B
C
#ifndef _IPT_NETQUOTA_H
|
|
#define _IPT_NETQUOTA_H
|
|
|
|
#define IPT_NETQUOTA_NAME_LEN 16
|
|
#define IPT_NETQUOTA_SRC_MATCH 1
|
|
#define IPT_NETQUOTA_DST_MATCH 2
|
|
|
|
struct ipt_netquota_info {
|
|
/* used by Userspace and Kernel */
|
|
char name[IPT_NETQUOTA_NAME_LEN];
|
|
u_int32_t network;
|
|
u_int32_t netmask;
|
|
unsigned char mode;
|
|
|
|
/* used only by Kernel */
|
|
unsigned char match_index;
|
|
};
|
|
|
|
#endif
|