]> git.ipfire.org Git - thirdparty/nftables.git/commit
src: dynamic input_descriptor allocation
authorPablo Neira Ayuso <pablo@netfilter.org>
Wed, 5 Jun 2019 09:56:11 +0000 (11:56 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 5 Jun 2019 15:54:21 +0000 (17:54 +0200)
commit60e917fa7cb55b4f675110bae78df56cd49bd486
treee54c4b49146ce50f035a04e5f985fb2c690a9c08
parent5db92ace9263ea1daa1d10c6f3a04ecc97317258
src: dynamic input_descriptor allocation

This patch introduces the input descriptor list, that stores the
existing input descriptor objects. These objects are now dynamically
allocated and release from scanner_destroy() path.

Follow up patches that decouple the parsing and the evaluation phases
require this for error reporting as described by b14572f72aac ("erec:
Fix input descriptors for included files"), this patch partially reverts
such partial.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/nftables.h
include/parser.h
src/erec.c
src/parser_bison.y
src/scanner.l