[PATCH nf-next v2 0/6] netfilter: replace u_int*_t with kernel int types

From: Carlos Grillet

Date: Mon Jun 15 2026 - 09:40:11 EST


Hi all! This is my first patch series of many, I hope :)
I'd like to start contributing by helping out with janitor work,
standardizing code and cleaning up.

This patch series replaces POSIX u_int8_t/u_int16_t with the preferred
kernel types u8/u16 across several netfilter files.

u_int*_t appears in many other files, 48 more to be precise, but I wanted
to keep this series small, unless advised otherwise.

No functional changes.

Changes in v2:
- addresses sashiko comments https://sashiko.dev/#/patchset/32368
- nf_sockopt: update function prototypes and struct definitions
- nf_log: update the corresponding function declarations and the
nf_logfn typedef
- link to v1: https://lore.kernel.org/all/20260612125146.75672-1-carlos@xxxxxxxxxxxxxxxx

Carlos Grillet (6):
netfilter: nf_nat_ftp: replace u_int16_t with u16
netfilter: nf_nat_irc: replace u_int16_t with u16
netfilter: nf_sockopt: replace u_int8_t with u8
netfilter: xt_DSCP: replace u_int8_t with u8
netfilter: xt_TCPOPTSTRIP: replace u_int8_t and u_int16_t with u8 and u16
netfilter: nf_log: replace u_int8_t with u8

include/linux/netfilter.h | 6 +++---
include/net/netfilter/nf_log.h | 16 ++++++++--------
net/netfilter/nf_log.c | 14 +++++++-------
net/netfilter/nf_nat_ftp.c | 2 +-
net/netfilter/nf_nat_irc.c | 2 +-
net/netfilter/nf_sockopt.c | 8 ++++----
net/netfilter/xt_DSCP.c | 8 ++++----
net/netfilter/xt_TCPOPTSTRIP.c | 8 ++++----
8 files changed, 32 insertions(+), 32 deletions(-)

--
2.54.0