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

hdr_ip Struct Reference

#include <ip.h>

Collaboration diagram for hdr_ip:

Collaboration graph
[legend]
List of all members.

Public Member Functions

ns_addr_tsrc ()
nsaddr_tsaddr ()
int32_tsport ()
ns_addr_tdst ()
nsaddr_tdaddr ()
int32_tdport ()
int & ttl ()
int & flowid ()
int & prio ()

Static Public Member Functions

int & offset ()
hdr_ipaccess (const Packet *p)

Public Attributes

ns_addr_t src_
ns_addr_t dst_
int ttl_
int fid_
int prio_

Static Public Attributes

int offset_

Member Function Documentation

hdr_ip* hdr_ip::access const Packet p  )  [inline, static]
 

Definition at line 72 of file ip.h.

References Packet::access(), and offset_.

Referenced by TcpSink::ack(), QSTcpSink::ack(), SFDPolicy::applyMeter(), SFDPolicy::applyPolicer(), JoBS::arvAccounting(), VirtualClassifier::classify(), PortClassifier::classify(), MCastClassifier::classify(), MCastBSTClassifier::classify(), ReserveAddressClassifier::classify(), AddressClassifier::classify(), SRR::deque(), dsREDQueue::deque(), DRR::deque(), Demarker::deque(), QueueMonitorCompat::drop(), SRR::enque(), SimpleIntServ::enque(), RIOQueue::enque(), Marker::enque(), JoBS::enque(), dsREDQueue::enque(), DRR::enque(), SemanticPacketQueue::filterAcks(), Trace::format(), SatTrace::format(), SatRouteAgent::forwardPacket(), dsREDQueue::getCodePt(), MPLSAddressClassifier::GetIPInfo(), DSRAgent::getRouteForPacket(), DSRAgent::handleDefaultForwarding(), DSRAgent::handleFlowForwarding(), DSRAgent::handleForwarding(), SRForwarder::handlePktWithoutSR(), SFQ::hash(), DRR::hash(), Agent::initpkt(), LoggingDataStruct::log(), HashClassifier::lookup(), DSDV_Agent::lost_link(), DSDV_Agent::makeUpdate(), GAFAgent::makeUpDiscoveryMsg(), PolicyClassifier::mark(), AggSpec::member(), HashClassifier::newflow(), LanRouter::next_hop(), QueueMonitorCompat::out(), TcpAgent::output(), QSNewRenoTcpAgent::output(), DropHashTable::packetToKey(), LinkDelay::pktintran(), DSRAgent::processBrokenRouteError(), DSRAgent::processFlowARS(), DSRAgent::processUnknownFlowError(), FullTcpAgent::prpkt(), UdpAgent::recv(), SessionTTLChecker::recv(), TTLChecker::recv(), DequeTrace::recv(), TraceIp::recv(), FullTcpAgent::recv(), BayFullTcpAgent::recv(), DropTargetAgent::recv(), SRMAgent::recv(), SSMSRMAgent::recv(), SRAgent::recv(), SRForwarder::recv(), LLSnoop::recv(), SessionHelper::recv(), SatDequeTrace::recv(), SatRouteAgent::recv(), SALink::recv(), SAack_Agent::recv(), SA_Agent::recv(), rtProtoDV::recv(), Replicator::recv(), QSAgent::recv(), PingAgent::recv(), NatAgent::recv(), MIPDecapsulator::recv(), MIPEncapsulator::recv(), MIPBSAgent::recv(), MFTPSndAgent::recv(), MFTPRcvAgent::recv(), LDPAgent::recv(), HttpInvalAgent::recv(), HackLossyLink::recv(), GAFPartner::recv(), FQ::recv(), DSRAgent::recv(), CtrMcastDecap::recv(), CtrMcastEncap::recv(), VirtualClassifier::recv(), MCastBSTClassifier::recv(), AckReconsController::recv(), SSMSRMAgent::recv_glb_sess(), SSMSRMAgent::recv_loc_sess(), MIPMHAgent::reg(), IdentStruct::registerDrop(), DSRAgent::replyFromRouteCache(), PushbackAgent::reportDrop(), DSRAgent::returnSrcRouteToRequestor(), MIPBSAgent::send_ads(), SSMSRMAgent::send_glb_sess(), SSMSRMAgent::send_loc_sess(), MFTPRcvAgent::send_nak(), SSMSRMAgent::send_rep_sess(), SatLL::sendDown(), SRMAgent::sendmsg(), MIPMHAgent::sendOutBCastPkt(), MIPBSAgent::sendOutBCastPkt(), DSRAgent::sendOutPacketWithRoute(), DSRAgent::sendRouteShortening(), DSRAgent::sendUnknownFlow(), Flow::setfields(), DSRAgent::tap(), DSRAgent::undeliverablePkt(), HashClassifier::unknown(), EWdetectorB::updateAList(), JoBS::updateStats(), DSRAgent::xmitFailed(), and DSRAgent::xmitFlowFailed().

00072                                                       {
00073                 return (hdr_ip*) p->access(offset_);
00074         }

Here is the call graph for this function:

nsaddr_t& hdr_ip::daddr  )  [inline]
 

Definition at line 82 of file ip.h.

References ns_addr_t::addr_, dst_, and nsaddr_t.

Referenced by SFDPolicy::applyMeter(), SFDPolicy::applyPolicer(), ARPTable::arpinput(), VirtualClassifier::classify(), MCastClassifier::classify(), MCastBSTClassifier::classify(), AddressClassifier::classify(), PingAgent::command(), SemanticPacketQueue::compareFlows(), dump_iphdr(), Trace::format(), SatTrace::format(), SatRouteAgent::forwardPacket(), LandmarkAgent::ForwardPacket(), DSDV_Agent::forwardPacket(), SensorQueryAgent::generate_query(), DSRAgent::getRouteForPacket(), LmsReceiver::handle_lms_pkt(), SRForwarder::handlePktWithoutSR(), SFQ::hash(), Agent::initpkt(), HashClassifier::lookup(), LandmarkAgent::makeUpdate(), DSDV_Agent::makeUpdate(), GAFAgent::makeUpDiscoveryMsg(), PolicyClassifier::mark(), HashClassifier::newflow(), LanRouter::next_hop(), LandmarkAgent::periodic_callback(), LinkDelay::pktintran(), DSRAgent::processBrokenRouteError(), DSRAgent::processFlowARS(), LandmarkAgent::ProcessHierUpdate(), DSRAgent::processUnknownFlowError(), FullTcpAgent::prpkt(), DequeTrace::recv(), TraceIpMac::recv(), TraceIp::recv(), BayFullTcpAgent::recv(), SRMAgent::recv(), SSMSRMAgent::recv(), SRForwarder::recv(), LLSnoop::recv(), SatDequeTrace::recv(), Replicator::recv(), QSAgent::recv(), PingAgent::recv(), MIPEncapsulator::recv(), MIPBSAgent::recv(), MFTPSndAgent::recv(), MFTPRcvAgent::recv(), LmsAgent::recv(), HackLossyLink::recv(), GAFPartner::recv(), FloodAgent::recv(), DumbAgent::recv(), DSRAgent::recv(), CtrMcastDecap::recv(), CtrMcastEncap::recv(), VirtualClassifier::recv(), MCastBSTClassifier::recv(), AckReconsController::recv(), MIPMHAgent::reg(), DSRAgent::replyFromRouteCache(), DSRAgent::returnSrcRouteToRequestor(), MIPBSAgent::send_ads(), LmsSender::send_dmcast(), LmsReceiver::send_dmcast(), LmsAgent::send_downstream(), LmsReceiver::send_nak(), LmsReceiver::send_refresh(), LmsAgent::send_upstream(), SatLL::sendDown(), LL::sendDown(), MIPMHAgent::sendOutBCastPkt(), MIPBSAgent::sendOutBCastPkt(), DSRAgent::sendRouteShortening(), DSRAgent::sendUnknownFlow(), Flow::setfields(), DSRAgent::tap(), DSRAgent::undeliverablePkt(), HashClassifier::unknown(), EWdetectorB::updateAList(), DSRAgent::xmitFailed(), and DSRAgent::xmitFlowFailed().

00082 { return (dst_.addr_); }

int32_t& hdr_ip::dport  )  [inline]
 

Definition at line 83 of file ip.h.

References dst_, int32_t, and ns_addr_t::port_.

Referenced by PortClassifier::classify(), ReserveAddressClassifier::classify(), PingAgent::command(), SemanticPacketQueue::compareFlows(), Trace::format(), SatTrace::format(), LandmarkAgent::ForwardPacket(), DSDV_Agent::forwardPacket(), SensorQueryAgent::generate_query(), DSRAgent::getRouteForPacket(), Agent::initpkt(), LandmarkAgent::makeUpdate(), DSDV_Agent::makeUpdate(), GAFAgent::makeUpDiscoveryMsg(), LandmarkAgent::periodic_callback(), DSRAgent::processBrokenRouteError(), DSRAgent::processUnknownFlowError(), FullTcpAgent::prpkt(), DequeTrace::recv(), BayFullTcpAgent::recv(), SatDequeTrace::recv(), SatRouteAgent::recv(), PingAgent::recv(), MIPEncapsulator::recv(), MIPBSAgent::recv(), LandmarkAgent::recv(), FloodAgent::recv(), DSDV_Agent::recv(), CtrMcastEncap::recv(), MIPMHAgent::reg(), DSRAgent::replyFromRouteCache(), DSRAgent::returnSrcRouteToRequestor(), MIPBSAgent::send_ads(), LmsSender::send_dmcast(), LmsReceiver::send_dmcast(), LmsAgent::send_downstream(), MIPMHAgent::sendOutBCastPkt(), MIPBSAgent::sendOutBCastPkt(), DSRAgent::sendRouteShortening(), DSRAgent::sendUnknownFlow(), and DSRAgent::xmitFailed().

00083 { return dst_.port_;}

ns_addr_t& hdr_ip::dst  )  [inline]
 

Definition at line 81 of file ip.h.

References dst_.

Referenced by Demarker::deque(), AggSpec::member(), DropHashTable::packetToKey(), SRMAgent::recv(), SSMSRMAgent::recv(), SAack_Agent::recv(), SA_Agent::recv(), NatAgent::recv(), MIPBSAgent::recv(), IdentStruct::registerDrop(), PushbackAgent::reportDrop(), MFTPRcvAgent::send_nak(), and SRMAgent::sendmsg().

00081 { return (dst_); }

int& hdr_ip::flowid  )  [inline]
 

Definition at line 86 of file ip.h.

References fid_.

Referenced by TcpSink::ack(), SFDPolicy::applyMeter(), SFDPolicy::applyPolicer(), SRR::deque(), dsREDQueue::deque(), QueueMonitorCompat::drop(), SRR::enque(), SimpleIntServ::enque(), RIOQueue::enque(), Trace::format(), SatTrace::format(), Agent::initpkt(), HashClassifier::lookup(), PolicyClassifier::mark(), AggSpec::member(), HashClassifier::newflow(), QueueMonitorCompat::out(), DropHashTable::packetToKey(), LinkDelay::pktintran(), DequeTrace::recv(), FullTcpAgent::recv(), DropTargetAgent::recv(), SRAgent::recv(), SatDequeTrace::recv(), SALink::recv(), SAack_Agent::recv(), PLMLossMonitor::recv(), HackLossyLink::recv(), FQ::recv(), CtrMcastDecap::recv(), CtrMcastEncap::recv(), IdentStruct::registerDrop(), PushbackAgent::reportDrop(), LmsSender::send_dmcast(), LmsReceiver::send_dmcast(), SSMSRMAgent::send_glb_sess(), SSMSRMAgent::send_loc_sess(), LmsReceiver::send_nak(), LmsReceiver::send_refresh(), SSMSRMAgent::send_rep_sess(), SRMAgent::sendmsg(), LmsSender::sendmsg(), Flow::setfields(), HashClassifier::unknown(), and EWdetectorB::updateAList().

00086 { return (fid_); }

int& hdr_ip::offset  )  [inline, static]
 

Definition at line 71 of file ip.h.

References offset_.

Referenced by Agent::initpkt(), and RedPDQueue::RedPDQueue().

00071 { return offset_; }

int& hdr_ip::prio  )  [inline]
 

Definition at line 87 of file ip.h.

References prio_.

Referenced by dsREDQueue::enque(), dsREDQueue::getCodePt(), Agent::initpkt(), SAack_Agent::recv(), and JoBS::updateStats().

00087 { return (prio_); }

nsaddr_t& hdr_ip::saddr  )  [inline]
 

Definition at line 78 of file ip.h.

References ns_addr_t::addr_, nsaddr_t, and src_.

Referenced by SFDPolicy::applyMeter(), SFDPolicy::applyPolicer(), MCastClassifier::classify(), MCastBSTClassifier::classify(), DSDV_Agent::command(), SemanticPacketQueue::compareFlows(), dump_iphdr(), DRR::enque(), Trace::format(), SatTrace::format(), LandmarkAgent::ForwardPacket(), DSDV_Agent::forwardPacket(), SensorQueryAgent::generate_query(), DSRAgent::getRouteForPacket(), LmsReceiver::handle_lms_pkt(), SRForwarder::handlePktWithoutSR(), SFQ::hash(), DRR::hash(), Agent::initpkt(), HashClassifier::lookup(), LandmarkAgent::makeUpdate(), DSDV_Agent::makeUpdate(), PolicyClassifier::mark(), HashClassifier::newflow(), LmsAgent::pkt2agent(), LinkDelay::pktintran(), DSRAgent::processBrokenRouteError(), DSRAgent::processFlowARS(), LandmarkAgent::ProcessHierUpdate(), DSRAgent::processUnknownFlowError(), DSDV_Agent::processUpdate(), FullTcpAgent::prpkt(), DequeTrace::recv(), TraceIpMac::recv(), TraceIp::recv(), BayFullTcpAgent::recv(), SRMAgent::recv(), SSMSRMAgent::recv(), SRForwarder::recv(), LLSnoop::recv(), SatDequeTrace::recv(), SatRouteAgent::recv(), rtProtoDV::recv(), Replicator::recv(), PingAgent::recv(), MIPEncapsulator::recv(), MIPBSAgent::recv(), LmsAgent::recv(), LandmarkAgent::recv(), HttpInvalAgent::recv(), HackLossyLink::recv(), FloodAgent::recv(), DSRAgent::recv(), DSDV_Agent::recv(), CtrMcastDecap::recv(), CtrMcastEncap::recv(), MCastBSTClassifier::recv(), AckReconsController::recv(), DSRAgent::replyFromRouteCache(), DSRAgent::returnSrcRouteToRequestor(), LmsAgent::send2replier(), DSRAgent::sendRouteShortening(), DSRAgent::sendUnknownFlow(), Flow::setfields(), DSRAgent::tap(), DSRAgent::undeliverablePkt(), HashClassifier::unknown(), EWdetectorB::updateAList(), DSRAgent::xmitFailed(), and DSRAgent::xmitFlowFailed().

00078 { return (src_.addr_); }

int32_t& hdr_ip::sport  )  [inline]
 

Definition at line 79 of file ip.h.

References int32_t, ns_addr_t::port_, and src_.

Referenced by PingAgent::command(), LandmarkAgent::command(), DSDV_Agent::command(), SemanticPacketQueue::compareFlows(), Trace::format(), SatTrace::format(), DSDV_Agent::forwardPacket(), SensorQueryAgent::generate_query(), DSRAgent::getRouteForPacket(), Agent::initpkt(), LandmarkAgent::makeUpdate(), LmsAgent::pkt2agent(), DSRAgent::processBrokenRouteError(), DSRAgent::processUnknownFlowError(), FullTcpAgent::prpkt(), DequeTrace::recv(), BayFullTcpAgent::recv(), SatDequeTrace::recv(), PingAgent::recv(), MIPEncapsulator::recv(), MIPBSAgent::recv(), LandmarkAgent::recv(), HttpInvalAgent::recv(), FloodAgent::recv(), CtrMcastEncap::recv(), DSRAgent::replyFromRouteCache(), DSRAgent::returnSrcRouteToRequestor(), DSRAgent::sendRouteShortening(), DSRAgent::sendUnknownFlow(), and DSRAgent::xmitFailed().

00079 { return src_.port_;}

ns_addr_t& hdr_ip::src  )  [inline]
 

Definition at line 77 of file ip.h.

References src_.

Referenced by Demarker::deque(), LoggingDataStruct::log(), DropHashTable::packetToKey(), SRMAgent::recv(), SSMSRMAgent::recv(), SAack_Agent::recv(), SA_Agent::recv(), NatAgent::recv(), MIPBSAgent::recv(), and PushbackAgent::reportDrop().

00077 { return (src_); }

int& hdr_ip::ttl  )  [inline]
 

Definition at line 84 of file ip.h.

References ttl_.

Referenced by TcpSink::ack(), QSTcpSink::ack(), DSRAgent::handleDefaultForwarding(), DSRAgent::handleFlowForwarding(), DSRAgent::handleForwarding(), Agent::initpkt(), TcpAgent::output(), QSNewRenoTcpAgent::output(), DSRAgent::processBrokenRouteError(), DSRAgent::processFlowARS(), TCPTapAgent::processpkt(), IPTapAgent::processpkt(), DSRAgent::processUnknownFlowError(), SessionTTLChecker::recv(), TTLChecker::recv(), SessionHelper::recv(), MIPEncapsulator::recv(), SSMSRMAgent::recv_glb_sess(), SSMSRMAgent::recv_loc_sess(), DSRAgent::replyFromRouteCache(), DSRAgent::returnSrcRouteToRequestor(), SSMSRMAgent::send_glb_sess(), SSMSRMAgent::send_loc_sess(), SSMSRMAgent::send_rep_sess(), DSRAgent::sendOutPacketWithRoute(), DSRAgent::sendRouteShortening(), DSRAgent::sendUnknownFlow(), and DSRAgent::xmitFailed().

00084 { return (ttl_); }


Member Data Documentation

ns_addr_t hdr_ip::dst_
 

Definition at line 59 of file ip.h.

Referenced by SinkAgent::bcast_interest(), daddr(), SinkAgent::data_ready(), OmniMcastAgent::DataForSink(), FloodingAgent::DataForSink(), DiffusionAgent::DataForSink(), dport(), dst(), DiffusionProb::ForwardData(), DiffusionProb::ForwardTxFailed(), DiffusionRate::FwdOriginal(), DiffusionProb::FwdPosReinf(), DiffusionRate::FwdSubsample(), MPLSAddressClassifier::GetIPInfo(), OmniMcastAgent::GodForwardData(), OmniMcastAgent::MACprepare(), FloodingAgent::MACprepare(), DiffusionAgent::MACprepare(), OmniMcastAgent::prepare_message(), FloodingAgent::prepare_message(), DiffusionAgent::prepare_message(), DiffusionAgent::SendBufferCheck(), SinkAgent::sendpkt(), and DiffusionAgent::StickPacketInSendBuffer().

int hdr_ip::fid_
 

Definition at line 67 of file ip.h.

Referenced by Demarker::deque(), and flowid().

int hdr_ip::offset_ [static]
 

Definition at line 43 of file ip.cc.

Referenced by access(), IPHeaderClass::IPHeaderClass(), and offset().

int hdr_ip::prio_
 

Definition at line 68 of file ip.h.

Referenced by Demarker::deque(), Marker::enque(), JoBS::enque(), PolicyClassifier::mark(), and prio().

ns_addr_t hdr_ip::src_
 

Definition at line 58 of file ip.h.

Referenced by SinkAgent::bcast_interest(), SinkAgent::data_ready(), MPLSAddressClassifier::GetIPInfo(), OmniMcastAgent::MACprepare(), FloodingAgent::MACprepare(), DiffusionAgent::MACprepare(), OmniMcastAgent::prepare_message(), FloodingAgent::prepare_message(), DiffusionAgent::prepare_message(), UdpAgent::recv(), PingAgent::recv(), LDPAgent::recv(), saddr(), SinkAgent::sendpkt(), sport(), and src().

int hdr_ip::ttl_
 

Definition at line 60 of file ip.h.

Referenced by LandmarkAgent::ForwardPacket(), SensorQueryAgent::generate_query(), LandmarkAgent::makeUpdate(), LandmarkAgent::ProcessHierUpdate(), SatRouteAgent::recv(), MIPEncapsulator::recv(), FloodAgent::recv(), DSDV_Agent::recv(), TCPTapAgent::sendpkt(), IPTapAgent::sendpkt(), and ttl().


The documentation for this struct was generated from the following files:
Generated on Tue Apr 20 12:50:32 2004 for NS2.26SourcesOriginal by doxygen 1.3.3