ns2 Network Simulator      C++ Class Hierarchy of version ns-snapshot-20040722
Home |  Source Code |  Manual |  FAQ |  Mailing List Archive |  Search |  Download | 


Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

ns-2/common/packet.h File Reference

#include <string.h>
#include <assert.h>
#include "config.h"
#include "scheduler.h"
#include "object.h"
#include "lib/bsd-list.h"
#include "packet-stamp.h"
#include "ns-process.h"

Compounds

struct  hdr_cmn
class  iface_literal
class  p_info
class  Packet
class  PacketData
class  PacketHeaderClass

Defines

#define RT_PORT   255
#define HDR_CMN(p)   (hdr_cmn::access(p))
#define HDR_ARP(p)   (hdr_arp::access(p))
#define HDR_MAC(p)   (hdr_mac::access(p))
#define HDR_MAC802_11(p)   ((hdr_mac802_11 *)hdr_mac::access(p))
#define HDR_MAC_TDMA(p)   ((hdr_mac_tdma *)hdr_mac::access(p))
#define HDR_SMAC(p)   ((hdr_smac *)hdr_mac::access(p))
#define HDR_LL(p)   (hdr_ll::access(p))
#define HDR_IP(p)   (hdr_ip::access(p))
#define HDR_RTP(p)   (hdr_rtp::access(p))
#define HDR_TCP(p)   (hdr_tcp::access(p))
#define HDR_SCTP(p)   (hdr_sctp::access(p))
#define HDR_SR(p)   (hdr_sr::access(p))
#define HDR_TFRC(p)   (hdr_tfrc::access(p))
#define HDR_TORA(p)   (hdr_tora::access(p))
#define HDR_IMEP(p)   (hdr_imep::access(p))
#define HDR_CDIFF(p)   (hdr_cdiff::access(p))
#define HDR_LMS(p)   (hdr_lms::access(p))
#define DATA_PACKET(type)
#define OFFSET(type, field)   ((int) &((type *)0)->field)
#define XMIT_REASON_RTS   0x01
#define XMIT_REASON_ACK   0x02

Typedefs

typedef void(* FailureCallback )(Packet *, void *)

Enumerations

enum  packet_t {
  PT_TCP, PT_UDP, PT_CBR, PT_AUDIO,
  PT_VIDEO, PT_ACK, PT_START, PT_STOP,
  PT_PRUNE, PT_GRAFT, PT_GRAFTACK, PT_JOIN,
  PT_ASSERT, PT_MESSAGE, PT_RTCP, PT_RTP,
  PT_RTPROTO_DV, PT_CtrMcast_Encap, PT_CtrMcast_Decap, PT_SRM,
  PT_REQUEST, PT_ACCEPT, PT_CONFIRM, PT_TEARDOWN,
  PT_LIVE, PT_REJECT, PT_TELNET, PT_FTP,
  PT_PARETO, PT_EXP, PT_INVAL, PT_HTTP,
  PT_ENCAPSULATED, PT_MFTP, PT_ARP, PT_MAC,
  PT_TORA, PT_DSR, PT_AODV, PT_IMEP,
  PT_RAP_DATA, PT_RAP_ACK, PT_TFRC, PT_TFRC_ACK,
  PT_PING, PT_DIFF, PT_RTPROTO_LS, PT_LDP,
  PT_GAF, PT_REALAUDIO, PT_PUSHBACK, PT_LMS,
  PT_LMS_SETUP, PT_SCTP, PT_SCTP_APP1, PT_SMAC,
  PT_XCP, PT_NTYPE
}
enum  ns_af_enum { NS_AF_NONE, NS_AF_ILINK, NS_AF_INET }

Functions

const iface_literal UNKN_IFACE (iface_literal::UNKN_IFACE,"?")
const iface_literal ANY_IFACE (iface_literal::ANY_IFACE,"*")

Variables

p_info packet_info

Define Documentation

#define DATA_PACKET type   
 

Value:

( (type) == PT_TCP || \
                            (type) == PT_TELNET || \
                            (type) == PT_CBR || \
                            (type) == PT_AUDIO || \
                            (type) == PT_VIDEO || \
                            (type) == PT_ACK || \
                            (type) == PT_SCTP || \
                            (type) == PT_SCTP_APP1 \
                            )

#define HDR_ARP      (hdr_arp::access(p))
 

#define HDR_CDIFF      (hdr_cdiff::access(p))
 

#define HDR_CMN      (hdr_cmn::access(p))
 

#define HDR_IMEP      (hdr_imep::access(p))
 

#define HDR_IP      (hdr_ip::access(p))
 

#define HDR_LL      (hdr_ll::access(p))
 

#define HDR_LMS      (hdr_lms::access(p))
 

#define HDR_MAC      (hdr_mac::access(p))
 

#define HDR_MAC802_11      ((hdr_mac802_11 *)hdr_mac::access(p))
 

#define HDR_MAC_TDMA      ((hdr_mac_tdma *)hdr_mac::access(p))
 

#define HDR_RTP      (hdr_rtp::access(p))
 

#define HDR_SCTP      (hdr_sctp::access(p))
 

#define HDR_SMAC      ((hdr_smac *)hdr_mac::access(p))
 

#define HDR_SR      (hdr_sr::access(p))
 

#define HDR_TCP      (hdr_tcp::access(p))
 

#define HDR_TFRC      (hdr_tfrc::access(p))
 

#define HDR_TORA      (hdr_tora::access(p))
 

#define OFFSET type,
field       ((int) &((type *)0)->field)
 

#define RT_PORT   255
 

#define XMIT_REASON_ACK   0x02
 

#define XMIT_REASON_RTS   0x01
 


Typedef Documentation

typedef void(* FailureCallback)(Packet *,void *)
 


Enumeration Type Documentation

enum ns_af_enum
 

Enumeration values:
NS_AF_NONE 
NS_AF_ILINK 
NS_AF_INET 

enum packet_t
 

Enumeration values:
PT_TCP 
PT_UDP 
PT_CBR 
PT_AUDIO 
PT_VIDEO 
PT_ACK 
PT_START 
PT_STOP 
PT_PRUNE 
PT_GRAFT 
PT_GRAFTACK 
PT_JOIN 
PT_ASSERT 
PT_MESSAGE 
PT_RTCP 
PT_RTP 
PT_RTPROTO_DV 
PT_CtrMcast_Encap 
PT_CtrMcast_Decap 
PT_SRM 
PT_REQUEST 
PT_ACCEPT 
PT_CONFIRM 
PT_TEARDOWN 
PT_LIVE 
PT_REJECT 
PT_TELNET 
PT_FTP 
PT_PARETO 
PT_EXP 
PT_INVAL 
PT_HTTP 
PT_ENCAPSULATED 
PT_MFTP 
PT_ARP 
PT_MAC 
PT_TORA 
PT_DSR 
PT_AODV 
PT_IMEP 
PT_RAP_DATA 
PT_RAP_ACK 
PT_TFRC 
PT_TFRC_ACK 
PT_PING 
PT_DIFF 
PT_RTPROTO_LS 
PT_LDP 
PT_GAF 
PT_REALAUDIO 
PT_PUSHBACK 
PT_LMS 
PT_LMS_SETUP 
PT_SCTP 
PT_SCTP_APP1 
PT_SMAC 
PT_XCP 
PT_NTYPE 


Function Documentation

const iface_literal ANY_IFACE iface_literal::ANY_IFACE   ,
"*"   
[static]
 

const iface_literal UNKN_IFACE iface_literal::UNKN_IFACE   ,
"?"   
[static]
 


Variable Documentation

p_info packet_info
 


This document is generated by doxygen.