All of lore.kernel.org
 help / color / mirror / Atom feed
* A probable bug in nftables doc
@ 2022-07-22  7:48 Eve Adam
  0 siblings, 0 replies; only message in thread
From: Eve Adam @ 2022-07-22  7:48 UTC (permalink / raw)
  To: netfilter-devel

Hello,

It seems that section 'ICMPV6 TYPE TYPE' and 'ICMPVX CODE TYPE' of
nftables doc have some problems:

The keyword of 'icmpv6 type type' probably should be 'icmpv6_type'
rather than 'icmpx_code';
meanwhile, the keyword of 'icmpvx code type' probably should be
'icmpx_code' rather than 'icmpv6_type'.

This issue can also be verified by typing the command 'nft describe
icmpv6_type' and 'nft describe icmpx_code' and comparing their actual
output with the output described by the doc.

I found the issue in 'nftables v0.9.8 (E.D.S.)'. But it is also the
case in the newest version v1.0.4.
v1.0.4 source code
(https://git.netfilter.org/nftables/tree/doc/data-types.txt?h=v1.0.4):

from line 267:

ICMPV6 TYPE TYPE
~~~~~~~~~~~~~~~~
[options="header"]
|==================
|Name | Keyword | Size | Base type
|ICMPv6 Type |
icmpx_code |
8 bit |
integer
|===================

from line 361:

ICMPVX CODE TYPE
~~~~~~~~~~~~~~~~
[options="header"]
|==================
|Name | Keyword | Size | Base type
|ICMPvX Code |
icmpv6_type |
8 bit |
integer
|===================

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-07-22  7:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-22  7:48 A probable bug in nftables doc Eve Adam

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.