OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [LINUX_2_4_26_OR32/] [linux/] [linux-2.4/] [include/] [linux/] [netfilter_ipv4/] [ipt_limit.h] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1275 phoenix
#ifndef _IPT_RATE_H
2
#define _IPT_RATE_H
3
 
4
/* timings are in milliseconds. */
5
#define IPT_LIMIT_SCALE 10000
6
 
7
/* 1/10,000 sec period => max of 10,000/sec.  Min rate is then 429490
8
   seconds, or one every 59 hours. */
9
struct ipt_rateinfo {
10
        u_int32_t avg;    /* Average secs between packets * scale */
11
        u_int32_t burst;  /* Period multiplier for upper limit. */
12
 
13
        /* Used internally by the kernel */
14
        unsigned long prev;
15
        u_int32_t credit;
16
        u_int32_t credit_cap, cost;
17
 
18
        /* Ugly, ugly fucker. */
19
        struct ipt_rateinfo *master;
20
};
21
#endif /*_IPT_RATE_H*/

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.