Linux Kernel
3.7.1
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Groups
Pages
include
uapi
linux
netfilter_bridge
ebt_limit.h
Go to the documentation of this file.
1
#ifndef __LINUX_BRIDGE_EBT_LIMIT_H
2
#define __LINUX_BRIDGE_EBT_LIMIT_H
3
4
#include <linux/types.h>
5
6
#define EBT_LIMIT_MATCH "limit"
7
8
/* timings are in milliseconds. */
9
#define EBT_LIMIT_SCALE 10000
10
11
/* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490
12
seconds, or one every 59 hours. */
13
14
struct
ebt_limit_info
{
15
__u32
avg
;
/* Average secs between packets * scale */
16
__u32
burst
;
/* Period multiplier for upper limit. */
17
18
/* Used internally by the kernel */
19
unsigned
long
prev
;
20
__u32
credit
;
21
__u32
credit_cap
,
cost
;
22
};
23
24
#endif
Generated on Thu Jan 10 2013 14:53:51 for Linux Kernel by
1.8.2