提交 e506e321 编写于 作者: P Pablo Neira Ayuso 提交者: Zheng Zengkai

netfilter: conntrack: do not print icmpv6 as unknown via /proc

stable inclusion
from stable-5.10.32
commit 783645e65b5774d794a60b606e8801a00e11eda3
bugzilla: 51796

--------------------------------

commit fbea3180 upstream.

/proc/net/nf_conntrack shows icmpv6 as unknown.

Fixes: 09ec82f5 ("netfilter: conntrack: remove protocol name from l4proto struct")
Signed-off-by: NPablo Neira Ayuso <pablo@netfilter.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 d99a7fe8
......@@ -266,6 +266,7 @@ static const char* l4proto_name(u16 proto)
case IPPROTO_GRE: return "gre";
case IPPROTO_SCTP: return "sctp";
case IPPROTO_UDPLITE: return "udplite";
case IPPROTO_ICMPV6: return "icmpv6";
}
return "unknown";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册