]> git.ipfire.org Git - ipfire-2.x.git/commit
firewalllog.dat: Proper display protocol names.
authorStefan Schantl <stefan.schantl@ipfire.org>
Thu, 15 Jul 2021 08:16:18 +0000 (10:16 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 2 Sep 2021 09:21:16 +0000 (09:21 +0000)
commitca1f4a07abec374b319c29e2f08fce621483bdd0
tree6b15f4da8d2a69a3d401d072076aef13e6575883
parent5c9faddc97fbac3099f77325643fab0ef062c796
firewalllog.dat: Proper display protocol names.

In some cases iptables logs the protocol number instead of the name.
When accessing the logs via the WUI, this number has been displayed as used
protocol, which is very hard to read and understand.

This commit adds a new function to the general-functions.pl, which
generates a hash to translate the protocol number into the protocol
name.

Fixes #11282.

Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Bernhard Bitsch <bbitsch@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
config/cfgroot/general-functions.pl
html/cgi-bin/logs.cgi/firewalllog.dat