From: Wolfgang Bumiller Date: Wed, 28 Mar 2018 08:53:26 +0000 (+0200) Subject: add get_etc_ethertypes X-Git-Url: https://git.proxmox.com/?p=pve-firewall.git;a=commitdiff_plain;h=b452ea100a724baba8805e5ae6eac61368f4c38b add get_etc_ethertypes Signed-off-by: Wolfgang Bumiller Reviewed-by: Thomas Lamprecht Tested-by: Thomas Lamprecht --- diff --git a/src/PVE/Firewall.pm b/src/PVE/Firewall.pm index ac48507..eb07be0 100644 --- a/src/PVE/Firewall.pm +++ b/src/PVE/Firewall.pm @@ -919,6 +919,14 @@ sub get_etc_protocols { return $etc_protocols; } +my $etc_ethertypes; + +sub get_etc_ethertypes { + $etc_ethertypes = parse_protocol_file('/etc/ethertypes') + if !$etc_ethertypes; + return $etc_ethertypes; +} + my $__local_network; sub local_network {