netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Thomas Haller <thaller@redhat.com>
To: NetFilter <netfilter-devel@vger.kernel.org>
Cc: Thomas Haller <thaller@redhat.com>
Subject: [nft PATCH v3 0/3] src: use reentrant getprotobyname_r()/getprotobynumber_r()/getservbyport_r()
Date: Fri, 18 Aug 2023 16:08:18 +0200	[thread overview]
Message-ID: <20230818141124.859037-1-thaller@redhat.com> (raw)

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

-- 
2.41.0


             reply	other threads:[~2023-08-18 14:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-08-18 14:08 Thomas Haller [this message]
2023-08-18 14:08 ` [nft PATCH v3 1/3] nftutils: add new internal file for general utilities Thomas Haller
2023-08-18 14:08 ` [nft PATCH v3 2/3] nftutils: add wrappers for getprotoby{name,number}_r(), getservbyport_r() Thomas Haller
2023-08-18 14:08 ` [nft PATCH v3 3/3] src: use " Thomas Haller
2023-08-18 16:12 ` [nft PATCH v3 0/3] src: use reentrant getprotobyname_r()/getprotobynumber_r()/getservbyport_r() Pablo Neira Ayuso
2023-08-18 17:39   ` Thomas Haller
2023-08-20 20:35     ` Pablo Neira Ayuso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230818141124.859037-1-thaller@redhat.com \
    --to=thaller@redhat.com \
    --cc=netfilter-devel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).