[pve-devel] [RFC firewall 3/8] add get_etc_ethertypes

Wolfgang Bumiller w.bumiller at proxmox.com
Wed Mar 28 10:53:26 CEST 2018


Signed-off-by: Wolfgang Bumiller <w.bumiller at proxmox.com>
---
 src/PVE/Firewall.pm | 8 ++++++++
 1 file changed, 8 insertions(+)

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 {
-- 
2.11.0





More information about the pve-devel mailing list