]> git.ipfire.org Git - thirdparty/nftables.git/commit
delinearize: list the icmpx reason with the string associated
authorAlvaro Neira <alvaroneay@gmail.com>
Fri, 17 Oct 2014 12:24:36 +0000 (14:24 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Fri, 17 Oct 2014 12:57:15 +0000 (14:57 +0200)
commit62e22f533edd67ffe31059d988e716aba84c03fe
tree335af0dba7c4eae028a3cca246b90a33cead3749
parent374d25eb6a3c45fe752d852d9d10935ed517e51c
delinearize: list the icmpx reason with the string associated

If you add the rule:
  nft add rule inet filter input reject with icmpx type host-unreachable
  nft list table inet filter

shows:
  table inet filter {
chain input {
reject with icmpx type 2
}
  }

We have to attach the icmpx datatype when we list the rules that use it. With
this patch if we list the ruleset, the output is:

  table inet filter {
chain input {
reject with icmpx type host-unreachable
}
  }

Signed-off-by: Alvaro Neira Ayuso <alvaroneay@gmail.com>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/netlink_delinearize.c