Text   |  XML   |  ReML   |   Visible Warnings:

Unreachable Computation  at iptrace.c:519

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

fill_in_pseudo_header

(/home/sate/Testcases/c/cve/wireshark-1.2.0/wiretap/iptrace.c)expand/collapse
Show more  
 500  fill_in_pseudo_header(int encap, const guint8 *pd, guint32 len,
 501      union wtap_pseudo_header *pseudo_header, guint8 *header)
 502  {
 503          char    if_text[9];
 504          char    *decimal;
 505          int     Vpi = 0;
 506          int     Vci = 0;
 507   
 508          switch (encap) {
 509   
 510          case WTAP_ENCAP_ATM_PDUS:
 511                  /* Rip apart the "x.y" text into Vpi/Vci numbers */
 512                  memcpy(if_text, &header[20], 8);
 513                  if_text[8] = '\0';
 514                  decimal = strchr(if_text, '.');
 515                  if (decimal) {
 516                          *decimal = '\0';
 517                          Vpi = (int)strtoul(if_text, NULL, 10);
 518                          decimal++;
 519                          Vci = (int)strtoul(decimal, NULL, 10);
 520                  }
 521   
 522                  /*
 523                   * OK, which value means "DTE->DCE" and which value means
 524                   * "DCE->DTE"?
 525                   */
 526                  pseudo_header->atm.channel = header[29];
 527   
 528                  pseudo_header->atm.vpi = Vpi;
 529                  pseudo_header->atm.vci = Vci;
 530   
 531                  /*
 532                   * Attempt to guess from the packet data, the VPI,
 533                   * and the VCI information about the type of traffic.
 534                   */
 535                  atm_guess_traffic_type(pd, len, pseudo_header);
 536   
 537                  /* We don't have this information */
 538                  pseudo_header->atm.flags = 0;
 539                  pseudo_header->atm.cells = 0;
 540                  pseudo_header->atm.aal5t_u2u = 0;
 541                  pseudo_header->atm.aal5t_len = 0;
 542                  pseudo_header->atm.aal5t_chksum = 0;
 543                  break;
 544   
 545          case WTAP_ENCAP_ETHERNET:
 546                  /* We assume there's no FCS in this frame. */
 547                  pseudo_header->eth.fcs_len = 0;
 548                  break;
 549          }
 550  }
Show more  




Change Warning 1006.29806 : Unreachable Computation

Priority:
State:
Finding:
Owner:
Note: