hdr_cmn
Bellow is the modified hdr_cmn structure in packet.h
for ns-2 version 2.1b2.
struct hdr_cmn {
int ptype_; // packet type (see above)
int size_; // simulated packet size
int uid_; // unique id
int error_; // error flag
double ts_; // timestamp: for q-delay measurement
double e2e_ts_; // time packet was generated (e2e q-delay)
int iface_; // receiving interface (label)
double label_; // Ion Stoica (05/08/97) -- required by CSFQ
static int offset_; // offset for this header
inline int& offset() { return offset_; }
/* per-field member functions */
inline int& ptype() { return (ptype_); }
inline int& size() { return (size_); }
inline int& uid() { return (uid_); }
inline int& error() { return error_; }
inline double& timestamp() { return (ts_); }
inline double& e2e_timestamp() { return (e2e_ts_); }
inline int& iface() { return (iface_); }
inline double& label() { return (label_); } // Ion Stoica (05/08/97)
inline void setlabel(double label) { label_ = label; } // Ion Stoica (05
/08/97)
};
Ion Stoica
Last modified: Tue Sep 8 18:03:35 EDT 1998