Skip to content

src: use reentrant getprotobyname_r()/getprotobynumber_r()/getservbyport_r()

Thomas Haller netfilter-devel 3 versions – Applied

Status from this message: Applied, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 3 repliesApplied
  2. v21 patch 5 repliesSuperseded
  3. v11 patch 5 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/3nftutils: add new internal file for general utilitiessrc/Makefile.am src/nftutils.c src/nftutils.h+12 -00 replies
2/3nftutils: add wrappers for getprotoby{name,number}_r(), getservbyport_r()configure.ac src/nftutils.c src/nftutils.h+117 -00 replies
3/3src: use wrappers for getprotoby{name,number}_r(), getservbyport_r()src/datatype.c src/json.c src/rule.c+32 -300 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [nft PATCH v3 0/3] src: use reentrant getprotobyname_r()/getprotobynumber_r()/getservbyport_r()

Changes since version 2:

- split the patch.

- add and use defines NFT_PROTONAME_MAXSIZE, NFT_SERVNAME_MAXSIZE, NETDB_BUFSIZE.

- add new GPL2+ source file as a place for the wrapper functions.

Thomas Haller (3):
nftutils: add new internal file for general utilities
nftutils: add wrappers for getprotoby{name,number}_r(),
getservbyport_r()
src: use wrappers for getprotoby{name,number}_r(), getservbyport_r()

 configure.ac    |   4 ++
 src/Makefile.am |   2 +
 src/datatype.c  |  33 ++++++++--------
 src/json.c      |  22 +++++------
 src/nftutils.c  | 102 ++++++++++++++++++++++++++++++++++++++++++++++++
 src/nftutils.h  |  21 ++++++++++
 src/rule.c      |   7 ++--
 7 files changed, 161 insertions(+), 30 deletions(-)
 create mode 100644 src/nftutils.c
 create mode 100644 src/nftutils.h
Signature · 1 line
2.41.0