hdr_ip Struct Reference

#include <ip.h>

Collaboration diagram for hdr_ip:

Collaboration graph
[legend]

Detailed Description

Definition at line 56 of file ip.h.

Public Member Functions

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

Static Public Member Functions

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

Data Fields

ns_addr_t dst_
int fid_
int prio_
ns_addr_t src_
int ttl_

Static Public Attributes

static int offset_


Member Function Documentation

static 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(), DEWPPolicy::applyMeter(), EWPolicy::applyPolicer(), SFDPolicy::applyPolicer(), DEWPPolicy::applyPolicer(), JoBS::arvAccounting(), VirtualClassifier::classify(), PortClassifier::classify(), MCastClassifier::classify(), MCastBSTClassifier::classify(), ReserveAddressClassifier::classify(), AddressClassifier::classify(), SRR::deque(), dsREDQueue::deque(), DRR::deque(), Demarker::deque(), DEWPPolicy::detect(), XCPQueue::do_before_packet_departure(), QueueMonitorCompat::drop(), SRR::enque(), SimpleIntServ::enque(), RIOQueue::enque(), Marker::enque(), JoBS::enque(), dsREDQueue::enque(), DRR::enque(), SemanticPacketQueue::filterAcks(), Trace::format(), SatTrace::format(), SatRouteAgent::forwardPacket(), XCPWrapQ::getCodePt(), 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(), XCPWrapQ::mark(), PolicyClassifier::mark(), AggSpec::member(), HashClassifier::newflow(), QueueMonitorCompat::out(), TcpAgent::output(), QSNewRenoTcpAgent::output(), DropHashTable::packetToKey(), DSRAgent::processFlowARS(), DSRAgent::processUnknownFlowError(), FullTcpAgent::prpkt(), UdpAgent::recv(), SessionTTLChecker::recv(), TTLChecker::recv(), DequeTrace::recv(), TraceIp::recv(), TPAgent::recv(), BayFullTcpAgent::recv(), DropTargetAgent::recv(), SRMAgent::recv(), SSMSRMAgent::recv(), SRAgent::recv(), LLSnoop::recv(), SessionHelper::recv(), SctpAgent::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(), MessagePassingAgent::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(), PushbackAgent::reportDrop(), DSRAgent::returnSrcRouteToRequestor(), MIPBSAgent::send_ads(), SRMAgent::sendmsg(), MIPMHAgent::sendOutBCastPkt(), MIPBSAgent::sendOutBCastPkt(), DSRAgent::sendRouteShortening(), TPAgent::sendto(), MessagePassingAgent::sendto(), DSRAgent::sendUnknownFlow(), Flow::setfields(), DSRAgent::tap(), MacSimple::trace_event(), 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_, and dst_.

Referenced by SFDPolicy::applyMeter(), EWPolicy::applyPolicer(), SFDPolicy::applyPolicer(), ARPTable::arpinput(), VirtualClassifier::classify(), MCastClassifier::classify(), MCastBSTClassifier::classify(), AddressClassifier::classify(), PingAgent::command(), SemanticPacketQueue::compareFlows(), DEWPPolicy::detect(), dump_iphdr(), CMUTrace::format_ip(), CMUTrace::format_rtp(), AODV::forward(), SatRouteAgent::forwardPacket(), DSDV_Agent::forwardPacket(), SensorQueryAgent::generate_query(), SatLL::getRoute(), DSRAgent::getRouteForPacket(), LocalRepairTimer::handle(), SRForwarder::handlePktWithoutSR(), imepAgent::handlerControlTimer(), SFQ::hash(), imepAgent::imepPacketUndeliverable(), Agent::initpkt(), HDLC::inSendBuffer(), toraAgent::log_link_layer_recycle(), HashClassifier::lookup(), LandmarkAgent::makeUpdate(), DSDV_Agent::makeUpdate(), GAFAgent::makeUpDiscoveryMsg(), PolicyClassifier::mark(), CMUTrace::nam_format(), HashClassifier::newflow(), LandmarkAgent::periodic_callback(), DSRAgent::processFlowARS(), DSRAgent::processUnknownFlowError(), FullTcpAgent::prpkt(), TraceIpMac::recv(), TraceIp::recv(), TPAgent::recv(), BayFullTcpAgent::recv(), SRMAgent::recv(), SSMSRMAgent::recv(), LLSnoop::recv(), Replicator::recv(), QSAgent::recv(), PingAgent::recv(), MIPEncapsulator::recv(), MIPBSAgent::recv(), HackLossyLink::recv(), GAFPartner::recv(), DumbAgent::recv(), DSRAgent::recv(), CtrMcastDecap::recv(), CtrMcastEncap::recv(), VirtualClassifier::recv(), MCastBSTClassifier::recv(), AckReconsController::recv(), imepAgent::recv_outgoing(), AODV::recvReply(), MIPMHAgent::reg(), DSRAgent::returnSrcRouteToRequestor(), AODV::rt_ll_failed(), toraAgent::rt_resolve(), AODV::rt_resolve(), toraAgent::rtRoutePacket(), MIPBSAgent::send_ads(), LmsSender::send_dmcast(), LmsReceiver::send_dmcast(), LmsAgent::send_downstream(), LmsReceiver::send_nak(), LmsReceiver::send_refresh(), LmsAgent::send_upstream(), imepAgent::sendAck(), imepAgent::sendBeacon(), toraAgent::sendCLR(), LL::sendDown(), AODV::sendError(), imepAgent::sendHello(), AODV::sendHello(), MIPMHAgent::sendOutBCastPkt(), MIPBSAgent::sendOutBCastPkt(), toraAgent::sendQRY(), HDLC::sendREJ(), AODV::sendReply(), AODV::sendRequest(), DSRAgent::sendRouteShortening(), HDLC::sendRR(), HDLC::sendSREJ(), TPAgent::sendto(), MessagePassingAgent::sendto(), HDLC::sendUA(), toraAgent::sendUPD(), Flow::setfields(), God::stampPacket(), MacSimple::trace_event(), DSRAgent::undeliverablePkt(), HashClassifier::unknown(), EWdetectorB::updateAList(), and DSRAgent::xmitFlowFailed().

00082 { return (dst_.addr_); }

int32_t& hdr_ip::dport  )  [inline]
 

Definition at line 83 of file ip.h.

References dst_, and ns_addr_t::port_.

Referenced by DEWPPolicy::applyMeter(), DEWPPolicy::applyPolicer(), PortClassifier::classify(), ReserveAddressClassifier::classify(), PingAgent::command(), SemanticPacketQueue::compareFlows(), DEWPPolicy::detect(), CMUTrace::format_ip(), DSDV_Agent::forwardPacket(), SensorQueryAgent::generate_query(), DSRAgent::getRouteForPacket(), imepAgent::handlerControlTimer(), Agent::initpkt(), LandmarkAgent::makeUpdate(), DSDV_Agent::makeUpdate(), GAFAgent::makeUpDiscoveryMsg(), LandmarkAgent::periodic_callback(), DSRAgent::processUnknownFlowError(), FullTcpAgent::prpkt(), TPAgent::recv(), BayFullTcpAgent::recv(), PingAgent::recv(), MIPEncapsulator::recv(), MIPBSAgent::recv(), CtrMcastEncap::recv(), MIPMHAgent::reg(), DSRAgent::returnSrcRouteToRequestor(), MIPBSAgent::send_ads(), LmsSender::send_dmcast(), LmsReceiver::send_dmcast(), LmsAgent::send_downstream(), imepAgent::sendAck(), imepAgent::sendBeacon(), toraAgent::sendCLR(), AODV::sendError(), imepAgent::sendHello(), AODV::sendHello(), MIPMHAgent::sendOutBCastPkt(), MIPBSAgent::sendOutBCastPkt(), toraAgent::sendQRY(), AODV::sendReply(), AODV::sendRequest(), DSRAgent::sendRouteShortening(), TPAgent::sendto(), MessagePassingAgent::sendto(), and toraAgent::sendUPD().

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(), CMUTrace::format_ip(), CMUTrace::format_rtp(), AggSpec::member(), DropHashTable::packetToKey(), SRMAgent::recv(), SSMSRMAgent::recv(), SAack_Agent::recv(), SA_Agent::recv(), NatAgent::recv(), MIPBSAgent::recv(), IdentStruct::registerDrop(), PushbackAgent::reportDrop(), SRMAgent::sendmsg(), and God::stampPacket().

00081 { return (dst_); }

int& hdr_ip::flowid  )  [inline]
 

Definition at line 86 of file ip.h.

References fid_.

Referenced by XcpSink::ack(), SFDPolicy::applyMeter(), SFDPolicy::applyPolicer(), SRR::deque(), dsREDQueue::deque(), XCPQueue::do_before_packet_departure(), QueueMonitorCompat::drop(), SRR::enque(), SimpleIntServ::enque(), RIOQueue::enque(), CMUTrace::format_ip(), Agent::initpkt(), HashClassifier::lookup(), PolicyClassifier::mark(), AggSpec::member(), HashClassifier::newflow(), QueueMonitorCompat::out(), DropHashTable::packetToKey(), DropTargetAgent::recv(), SRAgent::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(), LmsReceiver::send_nak(), LmsReceiver::send_refresh(), SRMAgent::sendmsg(), LmsSender::sendmsg(), Flow::setfields(), HashClassifier::unknown(), and EWdetectorB::updateAList().

00086 { return (fid_); }

static 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(), XCPWrapQ::getCodePt(), 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_, and src_.

Referenced by SFDPolicy::applyMeter(), EWPolicy::applyPolicer(), SFDPolicy::applyPolicer(), MCastClassifier::classify(), MCastBSTClassifier::classify(), DSDV_Agent::command(), SemanticPacketQueue::compareFlows(), dump_iphdr(), DRR::enque(), CMUTrace::format_ip(), DSDV_Agent::forwardPacket(), SensorQueryAgent::generate_query(), SctpAgent::GetReplyDestination(), DSRAgent::getRouteForPacket(), SRForwarder::handlePktWithoutSR(), imepAgent::handlerControlTimer(), SFQ::hash(), DRR::hash(), imepAgent::imep_ack_input(), imepAgent::imep_ack_object(), imepAgent::imep_beacon_input(), imepAgent::imep_hello_input(), imepAgent::imep_object_input(), Agent::initpkt(), HDLC::inSendBuffer(), toraAgent::log_link_layer_recycle(), toraAgent::log_recv_clr(), toraAgent::log_recv_qry(), toraAgent::log_recv_upd(), HashClassifier::lookup(), LandmarkAgent::makeUpdate(), PolicyClassifier::mark(), HashClassifier::newflow(), DSRAgent::processFlowARS(), LandmarkAgent::ProcessHierUpdate(), DSRAgent::processUnknownFlowError(), DSDV_Agent::processUpdate(), FullTcpAgent::prpkt(), TraceIpMac::recv(), TraceIp::recv(), TPAgent::recv(), BayFullTcpAgent::recv(), LLSnoop::recv(), SatRouteAgent::recv(), rtProtoDV::recv(), Replicator::recv(), PingAgent::recv(), MIPEncapsulator::recv(), MIPBSAgent::recv(), MessagePassingAgent::recv(), LandmarkAgent::recv(), HttpInvalAgent::recv(), HackLossyLink::recv(), FloodAgent::recv(), DSDV_Agent::recv(), CtrMcastDecap::recv(), CtrMcastEncap::recv(), MCastBSTClassifier::recv(), AckReconsController::recv(), imepAgent::recv_incoming(), toraAgent::recvCLR(), AODV::recvError(), toraAgent::recvQRY(), AODV::recvRequest(), toraAgent::recvUPD(), DSRAgent::returnSrcRouteToRequestor(), toraAgent::rt_resolve(), AODV::rt_resolve(), imepAgent::scheduleIncoming(), LmsAgent::send2replier(), imepAgent::sendAck(), imepAgent::sendBeacon(), toraAgent::sendCLR(), AODV::sendError(), imepAgent::sendHello(), AODV::sendHello(), toraAgent::sendQRY(), HDLC::sendREJ(), AODV::sendReply(), AODV::sendRequest(), DSRAgent::sendRouteShortening(), HDLC::sendRR(), HDLC::sendSREJ(), TPAgent::sendto(), HDLC::sendUA(), toraAgent::sendUPD(), Flow::setfields(), God::stampPacket(), MacSimple::trace_event(), DSRAgent::undeliverablePkt(), HashClassifier::unknown(), EWdetectorB::updateAList(), and DSRAgent::xmitFlowFailed().

00078 { return (src_.addr_); }

int32_t& hdr_ip::sport  )  [inline]
 

Definition at line 79 of file ip.h.

References ns_addr_t::port_, and src_.

Referenced by PingAgent::command(), LandmarkAgent::command(), DSDV_Agent::command(), SemanticPacketQueue::compareFlows(), CMUTrace::format_ip(), DSDV_Agent::forwardPacket(), SensorQueryAgent::generate_query(), SctpAgent::GetReplyDestination(), DSRAgent::getRouteForPacket(), imepAgent::handlerControlTimer(), Agent::initpkt(), LandmarkAgent::makeUpdate(), LmsAgent::pkt2agent(), DSRAgent::processUnknownFlowError(), FullTcpAgent::prpkt(), TPAgent::recv(), BayFullTcpAgent::recv(), PingAgent::recv(), MIPEncapsulator::recv(), MIPBSAgent::recv(), MessagePassingAgent::recv(), LandmarkAgent::recv(), HttpInvalAgent::recv(), FloodAgent::recv(), CtrMcastEncap::recv(), DSRAgent::returnSrcRouteToRequestor(), imepAgent::sendAck(), imepAgent::sendBeacon(), toraAgent::sendCLR(), AODV::sendError(), imepAgent::sendHello(), AODV::sendHello(), toraAgent::sendQRY(), AODV::sendReply(), AODV::sendRequest(), DSRAgent::sendRouteShortening(), TPAgent::sendto(), and toraAgent::sendUPD().

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(), CMUTrace::format_ip(), LoggingDataStruct::log(), DropHashTable::packetToKey(), SSMSRMAgent::recv(), SAack_Agent::recv(), SA_Agent::recv(), NatAgent::recv(), MIPBSAgent::recv(), PushbackAgent::reportDrop(), and God::stampPacket().

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::handleFlowForwarding(), Agent::initpkt(), TcpAgent::output(), QSNewRenoTcpAgent::output(), TCPTapAgent::processpkt(), IPTapAgent::processpkt(), DSRAgent::processUnknownFlowError(), SessionTTLChecker::recv(), TTLChecker::recv(), SessionHelper::recv(), MIPEncapsulator::recv(), SSMSRMAgent::recv_glb_sess(), SSMSRMAgent::recv_loc_sess(), DSRAgent::returnSrcRouteToRequestor(), and DSRAgent::sendRouteShortening().

00084 { return (ttl_); }


Field 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(), and SinkAgent::sendpkt().

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 70 of file ip.h.

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(), XCPWrapQ::mark(), 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(), LDPAgent::recv(), toraAgent::recvCLR(), toraAgent::recvUPD(), saddr(), SinkAgent::sendpkt(), sport(), and src().

int hdr_ip::ttl_
 

Definition at line 60 of file ip.h.

Referenced by CMUTrace::format_ip(), AODV::forward(), SensorQueryAgent::generate_query(), imepAgent::handlerControlTimer(), LandmarkAgent::makeUpdate(), SatRouteAgent::recv(), MIPDecapsulator::recv(), MIPEncapsulator::recv(), DSDV_Agent::recv(), AODV::recv(), imepAgent::sendAck(), imepAgent::sendBeacon(), toraAgent::sendCLR(), AODV::sendError(), imepAgent::sendHello(), AODV::sendHello(), toraAgent::sendQRY(), AODV::sendReply(), AODV::sendRequest(), toraAgent::sendUPD(), and ttl().


The documentation for this struct was generated from the following files:
Generated on Tue Mar 6 17:10:09 2007 for ns2 Network Simulator 2.29 by  doxygen 1.4.6