Text   |  XML   |  ReML   |   Visible Warnings:

Empty if Statement  at packet-eth.c:405

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

check_is_802_2

(/home/sate/Testcases/c/cve/wireshark-1.2.0/epan/dissectors/packet-eth.c)expand/collapse
Show more  
 395            /* Check if spare bit (1st bit of 7th word of payload) is zero. */
 396            if ((ccsds_heuristic_bit) && (tvb_get_bits8(tvb, 8*14 + 16*6, 1)!=0))
 397              CCSDS_bit = FALSE;
 398            /* If all the conditions are true, don't interpret payload as an 802.2 (LLC).
 399             * Additional check in packet-802.3.c will distinguish between 
 400             * IPX and CCSDS packets*/
 401            if (CCSDS_len && CCSDS_ver && CCSDS_head && CCSDS_bit)
 402              is_802_2 = FALSE;
 403          }
 404    }
 405    CATCH2(BoundsError, ReportedBoundsError) {
 406              ; /* do nothing */
 407   
 408    }
 409    ENDTRY;
 410    return is_802_2;
 411  }
 412   
 413   
 414  /*
 415   * Add an Ethernet trailer - which, for some captures, might be the FCS
Show more  




Change Warning 27.27269 : Empty if Statement

Priority:
State:
Finding:
Owner:
Note: