From 556f704458cdb509d395ddb7d2629987d60e762e Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Tue, 17 Nov 2020 00:57:10 +0100 Subject: Use proto_to_name() from xshared in more places Share the common proto name lookup code. While being at it, make proto number variable 16bit, values may exceed 256. This aligns iptables-nft '-p' argument printing with legacy iptables. In practice, this should make a difference only in corner cases. Signed-off-by: Phil Sutter --- include/xtables.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/xtables.h') diff --git a/include/xtables.h b/include/xtables.h index df1eaee3..1fd5f63a 100644 --- a/include/xtables.h +++ b/include/xtables.h @@ -395,7 +395,7 @@ struct xtables_rule_match { */ struct xtables_pprot { const char *name; - uint8_t num; + uint16_t num; }; enum xtables_tryload { -- cgit v1.2.3