add get_etc_ethertypes
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 28 Mar 2018 08:53:26 +0000 (10:53 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 28 Mar 2018 09:35:06 +0000 (11:35 +0200)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Reviewed-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Tested-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/Firewall.pm

index ac48507..eb07be0 100644 (file)
@@ -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 {