diff options
author | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-12-13 12:31:12 +0100 |
---|---|---|
committer | Jozsef Kadlecsik <kadlec@blackhole.kfki.hu> | 2010-12-13 12:31:12 +0100 |
commit | d137c0bd736985444f5ed43860d47d626250b67a (patch) | |
tree | 0fa120f3966add7ac19105fca7a16fd13a010ce3 /include/libipset | |
parent | dcf7ea57f13f3b1e1b0d87cfa71a6a73335825c2 (diff) |
Buffered commands are just ... buffered.
Calculate the free buffer size when adding the existing attributes at the buffered
commands. If the buffer is full, cancel the unfinished nested attribute and commit
the previously buffered commands. Then restart with the current buffered command.
Thus we can get rid of the ugly maxsize parameter of the set types.
Diffstat (limited to 'include/libipset')
-rw-r--r-- | include/libipset/types.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/include/libipset/types.h b/include/libipset/types.h index f1847aa..f9c8f2d 100644 --- a/include/libipset/types.h +++ b/include/libipset/types.h @@ -58,13 +58,6 @@ enum { IPSET_KERNEL_OK, }; -/* Max sizes for aggregated ADD (and DEL) commands */ -enum { - IPSET_MAXSIZE_INET, - IPSET_MAXSIZE_INET6, - IPSET_MAXSIZE_MAX, -}; - /* How element parts are parsed */ struct ipset_elem { ipset_parsefn parse; /* elem parser function */ @@ -88,7 +81,6 @@ struct ipset_type { const struct ipset_arg *args[IPSET_CADT_MAX]; /* create/ADT args besides elem */ uint64_t mandatory[IPSET_CADT_MAX]; /* create/ADT mandatory flags */ uint64_t full[IPSET_CADT_MAX]; /* full args flags */ - size_t maxsize[IPSET_MAXSIZE_MAX]; /* max sizes */ const char *usage; /* terse usage */ void (*usagefn)(void); /* additional usage */ |