Text   |  XML   |  ReML   |   Visible Warnings:

Redundant Condition  at packet-enip.c:468

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

classify_packet

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-enip.c)expand/collapse
Show more  
 460  classify_packet(packet_info *pinfo)
 461  {
 462          /* see if nature of packets can be derived from src/dst ports */
 463          /* if so, return as found */
 464          if ( ( ENIP_ENCAP_PORT == pinfo->srcport && ENIP_ENCAP_PORT != pinfo->destport ) ||
 465                   ( ENIP_ENCAP_PORT != pinfo->srcport && ENIP_ENCAP_PORT == pinfo->destport ) ) {
 466                  if ( ENIP_ENCAP_PORT == pinfo->srcport )
 467                          return RESPONSE_PACKET;
 468                  else if ( ENIP_ENCAP_PORT == pinfo->destport )
 469                          return REQUEST_PACKET;
 470          }
 471          /* else, cannot classify */
 472          return CANNOT_CLASSIFY;
 473  }
Show more  




Change Warning 2342.29284 : Redundant Condition

Priority:
State:
Finding:
Owner:
Note: