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

void TCPHeader::dump (  )  [virtual]

Debug

Implements Header.

Definition at line 289 of file TCPHeader.cc.

References getACKFlag(), getAckNumber(), getChecksum(), getDestPort(), getFINFlag(), getPSHFlag(), getRSTFlag(), getSeqNumber(), getSourcePort(), getSYNFlag(), getUrgentPointer(), getURGFlag(), and getWindow().

                 {
  log(DUMP, "TCP header :");
  log(DUMP, "source_port        = %d", getSourcePort());
  log(DUMP, "dest_port          = %d", getDestPort());
  log(DUMP, "sequence_number    = %d", getSeqNumber());
  log(DUMP, "ack_number         = %d", getAckNumber());
  log(DUMP, "flags              = 0x%x", header[13]);
  log(DUMP, "fin_flag(1)        = %s", getFINFlag() ? "true" : "false");
  log(DUMP, "syn_flag(2)        = %s", getSYNFlag() ? "true" : "false");
  log(DUMP, "rst_flag(4)        = %s", getRSTFlag() ? "true" : "false");
  log(DUMP, "psh_flag(8)        = %s", getPSHFlag() ? "true" : "false");
  log(DUMP, "ack_flag(16)       = %s", getACKFlag() ? "true" : "false");
  log(DUMP, "urg_flag(32)       = %s", getURGFlag() ? "true" : "false");
  log(DUMP, "windown            = %d", getWindow());
  log(DUMP, "checksum           = %d", getChecksum());
  log(DUMP, "urgent_pointer     = %d", getUrgentPointer());
}


Generated by  Doxygen 1.6.0   Back to index