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

TCPHeader::TCPHeader ( const uint8 *  data,
int  length,
int  offset 
)

Create a new TCP header and initialise it with 20 bytes of data array beginning at offset offset.

Definition at line 20 of file TCPHeader.cc.

                                                               {
  header = new uint8[20];
  header_len = 20;
  memcpy(header, data + offset, 20);
}


Generated by  Doxygen 1.6.0   Back to index