Fix comparison between different ARP mode enum types

This commit is contained in:
Srivats P 2021-08-15 18:27:13 +05:30
parent 226b6cf35c
commit 1894a633e1

View File

@ -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());