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

From: Carlos Grillet

Date: Fri Jun 12 2026 - 08:56:36 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.

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

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 ++++----
6 files changed, 21 insertions(+), 21 deletions(-)

--
2.54.0