~ubuntu-branches/ubuntu/raring/ebtables/raring

« back to all changes in this revision

Viewing changes to extensions/ebt_limit.c

  • Committer: Bazaar Package Importer
  • Author(s): Jan Christoph Nordholz
  • Date: 2009-06-28 20:01:25 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090628200125-kc5hc1b5w8o9cjqr
Tags: 2.0.9.1-1
* New upstream release:
  * New modules for ip6 and nflog.
* Bump Standards version to 3.8.2:
  * Catch postrm errors.
  * Specify GPL version and cleanup copyright file.
* Bump debhelper level to 7.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
#define EBT_LIMIT_AVG   "3/hour"
20
20
#define EBT_LIMIT_BURST 5
21
21
 
22
 
int string_to_number(const char *s, unsigned int min, unsigned int max,
 
22
static int string_to_number(const char *s, unsigned int min, unsigned int max,
23
23
   unsigned int *ret)
24
24
{
25
25
        long number;
201
201
 
202
202
static struct ebt_u_match limit_match =
203
203
{
204
 
        .name           = EBT_LIMIT_MATCH,
 
204
        .name           = "limit",
205
205
        .size           = sizeof(struct ebt_limit_info),
206
206
        .help           = print_help,
207
207
        .init           = init,