From 1894a633e105919bdf92ab3ffdd71259a1239db5 Mon Sep 17 00:00:00 2001 From: Srivats P Date: Sun, 15 Aug 2021 18:27:13 +0530 Subject: [PATCH] Fix comparison between different ARP mode enum types --- common/arp.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/common/arp.cpp b/common/arp.cpp index f4d5bbf..65e6eb5 100644 --- a/common/arp.cpp +++ b/common/arp.cpp @@ -430,7 +430,7 @@ QVariant ArpProtocol::fieldData(int index, FieldAttrib attrib, switch(data.target_proto_addr_mode()) { - case OstProto::Arp::kFixed: + case OstProto::Arp::kFixedHost: protoAddr = data.target_proto_addr(); break; case OstProto::Arp::kIncrementHost: @@ -786,7 +786,7 @@ int ArpProtocol::protocolFrameVariableCount() const } if (fieldData(arp_senderProtoAddrMode, FieldValue).toUInt() - != uint(OstProto::Arp::kFixed)) + != uint(OstProto::Arp::kFixedHost)) { count = AbstractProtocol::lcm(count, fieldData(arp_senderProtoAddrCount, FieldValue).toUInt()); @@ -800,7 +800,7 @@ int ArpProtocol::protocolFrameVariableCount() const } if (fieldData(arp_targetProtoAddrMode, FieldValue).toUInt() - != uint(OstProto::Arp::kFixed)) + != uint(OstProto::Arp::kFixedHost)) { count = AbstractProtocol::lcm(count, fieldData(arp_targetProtoAddrCount, FieldValue).toUInt());