Logo Search packages:      
Sourcecode: paris-traceroute version File versions  Download package

void IP4Header::dump (  )  [virtual]

Debug.

Implements Header.

Definition at line 334 of file IP4Header.cc.

References getProtocol(), getToS(), getTotalLength(), and getTTL().

                 {
  log(DUMP, "IP4 header :");
  log(DUMP, "tos                = %d", getToS());
  log(DUMP, "total_length       = %d", getTotalLength());
  log(DUMP, "ttl                = %d", getTTL());
  log(DUMP, "protocol           = %d", getProtocol());
  struct in_addr addr;
  addr.s_addr = *(uint32*)(header + 12);
  log(DUMP, "source_address     = %s", inet_ntoa(addr));
  addr.s_addr = *(uint32*)(header + 16);
  log(DUMP, "dest_address       = %s", inet_ntoa(addr));
}


Generated by  Doxygen 1.6.0   Back to index