public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] netfilter: conntrack do not print ah and esp as unknown via /proc
@ 2025-02-21 10:21 wh_bin
  2025-02-21 10:53 ` Pablo Neira Ayuso
  0 siblings, 1 reply; 2+ messages in thread
From: wh_bin @ 2025-02-21 10:21 UTC (permalink / raw)
  To: pablo, kadlec, davem, edumazet, kuba, pabeni
  Cc: horms, netfilter-devel, coreteam, netdev, linux-kernel,
	hongbin wang

From: hongbin wang <wh_bin@126.com>

/proc/net/nf_conntrack shows ah and esp as unknown.

Signed-off-by: hongbin wang <wh_bin@126.com>
---
 net/netfilter/nf_conntrack_standalone.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c
index 502cf10aab41..29fb5a07a6c2 100644
--- a/net/netfilter/nf_conntrack_standalone.c
+++ b/net/netfilter/nf_conntrack_standalone.c
@@ -266,6 +266,8 @@ static const char* l4proto_name(u16 proto)
 	case IPPROTO_SCTP: return "sctp";
 	case IPPROTO_UDPLITE: return "udplite";
 	case IPPROTO_ICMPV6: return "icmpv6";
+	case IPPROTO_ESP: return "esp";
+	case IPPROTO_AH: return "ah";
 	}
 
 	return "unknown";
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-02-21 10:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-21 10:21 [PATCH] netfilter: conntrack do not print ah and esp as unknown via /proc wh_bin
2025-02-21 10:53 ` Pablo Neira Ayuso

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox