]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/blame - include/uapi/linux/netfilter_bridge/ebt_limit.h
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ac97-mfd', 'asoc/topic...
[mirror_ubuntu-focal-kernel.git] / include / uapi / linux / netfilter_bridge / ebt_limit.h
CommitLineData
6f52b16c 1/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
1da177e4
LT
2#ifndef __LINUX_BRIDGE_EBT_LIMIT_H
3#define __LINUX_BRIDGE_EBT_LIMIT_H
4
06988b06
JE
5#include <linux/types.h>
6
1da177e4
LT
7#define EBT_LIMIT_MATCH "limit"
8
9/* timings are in milliseconds. */
10#define EBT_LIMIT_SCALE 10000
11
12/* 1/10,000 sec period => max of 10,000/sec. Min rate is then 429490
13 seconds, or one every 59 hours. */
14
d94d9fee 15struct ebt_limit_info {
0260c1dc
JE
16 __u32 avg; /* Average secs between packets * scale */
17 __u32 burst; /* Period multiplier for upper limit. */
1da177e4
LT
18
19 /* Used internally by the kernel */
20 unsigned long prev;
0260c1dc
JE
21 __u32 credit;
22 __u32 credit_cap, cost;
1da177e4
LT
23};
24
25#endif