Skip to content

Remove more global variables

Pablo Neira Ayuso netfilter-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6src: add include_paths to struct nft_ctxinclude/nftables.h include/parser.h src/main.c +2 more+24 -160 replies
2/6src: add maximum number of parser errors to struct nft_ctxinclude/nftables.h src/main.c src/parser_bison.y+5 -50 replies
3/6src: remove ifdef DEBUG pollutionconfigure.ac include/utils.h src/evaluate.c +6 more+3 -600 replies
4/6src: add struct mnl_ctxinclude/mnl.h src/mnl.c+94 -390 replies
5/6mnl: pass struct netlink_ctx to mnl_nft_socket_sendmsg()src/mnl.c+6 -70 replies
6/6src: add debugging mask to context structureinclude/erec.h include/expression.h include/mnl.h +17 more+161 -1150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH nft 0/6] Remove more global variables

Hi,

This patchset contains more updates to prepare the introduction of libnftables, by placing global variables into context structures.

This series applies on top of Phil's "[nft] Keep cache in struct nft_ctx":

	http://patchwork.ozlabs.org/patch/804410/

Pablo Neira Ayuso (6):
src: add include_paths to struct nft_ctx
src: add maximum number of parser errors to struct nft_ctx
src: remove ifdef DEBUG pollution
src: add struct mnl_ctx
mnl: pass struct netlink_ctx to mnl_nft_socket_sendmsg()
src: add debugging mask to context structure

 configure.ac              |   4 +-
 include/erec.h            |   6 +-
 include/expression.h      |   3 +-
 include/mnl.h             |   9 ++-
 include/netlink.h         |  18 ++++--
 include/nftables.h        |   8 +--
 include/parser.h          |   8 ++-
 include/proto.h           |   5 +-
 include/rule.h            |   4 +-
 include/utils.h           |  12 ----
 src/cli.c                 |   5 +-
 src/erec.c                |   9 +--
 src/evaluate.c            |  51 ++++++++-------
 src/main.c                |  42 ++++++------
 src/mnl.c                 | 160 +++++++++++++++++++++++++++++-----------------
 src/netlink.c             |  86 +++++++++++--------------
 src/netlink_delinearize.c |   3 +-
 src/netlink_linearize.c   |   2 +-
 src/parser_bison.y        |  21 +++---
 src/proto.c               |  16 +++--
 src/rule.c                |  23 ++++---
 src/scanner.l             |  10 +--
 src/segtree.c             |  30 +++++----
 23 files changed, 293 insertions(+), 242 deletions(-)
Signature · 1 line
2.1.4