From c9f761c262ea390d7fed24d43ecf141b070cc3a5 Mon Sep 17 00:00:00 2001 From: Jeffrey Quesnelle Date: Wed, 14 Nov 2018 11:24:55 -0500 Subject: [PATCH] add Ethernet cases to Network --- include/icsneo/communication/network.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/include/icsneo/communication/network.h b/include/icsneo/communication/network.h index f0bb294..5c0fb60 100644 --- a/include/icsneo/communication/network.h +++ b/include/icsneo/communication/network.h @@ -142,6 +142,8 @@ public: return "Other"; case Type::Internal: return "Internal"; + case Type::Ethernet: + return "Ethernet"; case Type::Invalid: default: return "Invalid Type"; @@ -187,6 +189,21 @@ public: case NetID::Invalid: case NetID::Any: return Type::Invalid; + case NetID::Ethernet: + case NetID::Ethernet_DAQ: + case NetID::OP_Ethernet1: + case NetID::OP_Ethernet2: + case NetID::OP_Ethernet3: + case NetID::OP_Ethernet4: + case NetID::OP_Ethernet5: + case NetID::OP_Ethernet6: + case NetID::OP_Ethernet7: + case NetID::OP_Ethernet8: + case NetID::OP_Ethernet9: + case NetID::OP_Ethernet10: + case NetID::OP_Ethernet11: + case NetID::OP_Ethernet12: + return Type::Ethernet; default: return Type::Other; }