[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ns] the priority from application layer to network layer
Hi All,
I want to know How to send the priority from application layer to ip
packet?
I found the field of priority in the hdr_ip "prio_". But How the
priority from application layer can access ip packet at network layer?
Note: When the network layer receive the packet from upper layers it
encapsulated form.
From ip.h
struct hdr_ip {
/* common to IPv{4,6} */
ns_addr_t src_;
ns_addr_t dst_;
int ttl_;
/* Monarch extn */
// u_int16_t sport_;
// u_int16_t dport_;
/* IPv6 */
int fid_; /* flow id */
int prio_;
static int offset_;
inline static int& offset() { return offset_; }
inline static hdr_ip* access(const Packet* p) {
return (hdr_ip*) p->access(offset_);
}
How can I access the priority at a node? Then How can put it in ip.h
"prio_" ?
Thanks for your cooperation in advance.
With best regards
Ahmad Ali
_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com