]> granicus.if.org Git - ipset/commit
Buffered commands are just ... buffered.
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 13 Dec 2010 11:31:12 +0000 (12:31 +0100)
committerJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Mon, 13 Dec 2010 11:31:12 +0000 (12:31 +0100)
commitd137c0bd736985444f5ed43860d47d626250b67a
tree0fa120f3966add7ac19105fca7a16fd13a010ce3
parentdcf7ea57f13f3b1e1b0d87cfa71a6a73335825c2
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.
include/libipset/types.h
lib/session.c
lib/types.c