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

UDPHeader Class Reference

#include <Header.h>

Inheritance diagram for UDPHeader:

Header

List of all members.


Detailed Description

UDP header. Cfr. RFC 768

Definition at line 117 of file Header.h.


Public Types

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

Public Member Functions

void dump ()
void dumpRaw ()
uint16 getChecksum ()
uint16 getDatagramLength ()
uint16 getDestPort ()
int getHeaderLength ()
int getHeaderType ()
uint16 getSourcePort ()
void pack (uint8 *data, int length, int offset)
void setChecksum (uint16 checksum)
void setDatagramLength (uint16 length)
void setDestPort (uint16 port)
void setSourcePort (uint16 port)
 UDPHeader (const uint8 *data, int length, int offset)
 UDPHeader ()
 ~UDPHeader ()

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