OSDN Git Service

netfilter: nft_set_pipapo: Fix mapping table example in comments
authorStefano Brivio <sbrivio@redhat.com>
Fri, 14 Feb 2020 17:14:13 +0000 (18:14 +0100)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 18 Feb 2020 21:06:54 +0000 (22:06 +0100)
In both insertion and lookup examples, the two element pointers
of rule mapping tables were swapped. Fix that.

Reported-by: Pablo Neira Ayuso <pablo@netfilter.org>
Fixes: 3c4287f62044 ("nf_tables: Add set type for arbitrary concatenation of ranges")
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/nft_set_pipapo.c

index f0cb1e1..579600b 100644 (file)
  * ::
  *
  *       rule indices in last field:    0    1
- *       map to elements:             0x42  0x66
+ *       map to elements:             0x66  0x42
  *
  *
  * Matching
  * ::
  *
  *       rule indices in last field:    0    1
- *       map to elements:             0x42  0x66
+ *       map to elements:             0x66  0x42
  *
  *      the matching element is at 0x42.
  *