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

TCPHeader Class Reference

#include <Header.h>

Inheritance diagram for TCPHeader:

Header

List of all members.


Detailed Description

TCP header. Cfr. RFC 793

Definition at line 71 of file Header.h.


Public Types

enum  type {
  IP4, UDP, TCP, ICMP,
  MPLS
}

Public Member Functions

void dump ()
void dumpRaw ()
bool getACKFlag ()
uint32 getAckNumber ()
uint16 getChecksum ()
uint16 getDestPort ()
bool getFINFlag ()
int getHeaderLength ()
int getHeaderType ()
bool getPSHFlag ()
bool getRSTFlag ()
uint32 getSeqNumber ()
uint16 getSourcePort ()
bool getSYNFlag ()
uint16 getUrgentPointer ()
bool getURGFlag ()
uint16 getWindow ()
void pack (uint8 *data, int length, int offset)
void setACKFlag (bool flag)
void setAckNumber (uint32 ack)
void setChecksum (uint16 sum)
void setDestPort (uint16 port)
void setFINFlag (bool flag)
void setPSHFlag (bool flag)
void setRSTFlag (bool flag)
void setSeqNumber (uint32 seq)
void setSourcePort (uint16 port)
void setSYNFlag (bool flag)
void setUrgentPointer (uint16 ptr)
void setURGFlag (bool flag)
void setWindow (uint16 win)
 TCPHeader (const uint8 *data, int length, int offset)
 TCPHeader ()
 ~TCPHeader ()

Private Attributes

uint8 * header
int header_len

The documentation for this class was generated from the following files:

Generated by  Doxygen 1.6.0   Back to index