A Discrete-Event Network Simulator
API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ns3::Header Class Referenceabstract

Protocol header serialization and deserialization. More...

#include <header.h>

Inherits ns3::Chunk.

Inherited by anonymous_namespace{packet-metadata-test.cc}::HistoryHeaderBase, anonymous_namespace{packet-test-suite.cc}::ATestHeaderBase, BenchHeader< N >, MyHeader, ns3::AlohaNoackMacHeader, ns3::AmsduSubframeHeader, ns3::aodv::RerrHeader, ns3::aodv::RrepAckHeader, ns3::aodv::RrepHeader, ns3::aodv::RreqHeader, ns3::aodv::TypeHeader, ns3::ArpHeader, ns3::Asn1Header, ns3::BandwidthRequestHeader, ns3::CtrlBAckRequestHeader, ns3::CtrlBAckResponseHeader, ns3::Dcd, ns3::DlMap, ns3::dot11s::MeshHeader, ns3::dot11s::PeerLinkFrameStart, ns3::DsaAck, ns3::DsaReq, ns3::DsaRsp, ns3::dsdv::DsdvHeader, ns3::dsr::DsrFsHeader, ns3::dsr::DsrOptionHeader, ns3::EpcX2HandoverPreparationFailureHeader, ns3::EpcX2HandoverRequestAckHeader, ns3::EpcX2HandoverRequestHeader, ns3::EpcX2Header, ns3::EpcX2LoadInformationHeader, ns3::EpcX2ResourceStatusUpdateHeader, ns3::EpcX2SnStatusTransferHeader, ns3::EpcX2UeContextReleaseHeader, ns3::EthernetHeader, ns3::flame::FlameHeader, ns3::FragmentationSubheader, ns3::GenericMacHeader, ns3::GrantManagementSubheader, ns3::GtpuHeader, ns3::Icmpv4DestinationUnreachable, ns3::Icmpv4Echo, ns3::Icmpv4Header, ns3::Icmpv4TimeExceeded, ns3::Icmpv6Header, ns3::Icmpv6OptionHeader, ns3::IdealHandoverCommandHeader, ns3::IdealHandoverPreparationInfoHeader, ns3::Ipv4Header, ns3::Ipv6ExtensionHeader, ns3::Ipv6Header, ns3::Ipv6OptionHeader, ns3::LlcSnapHeader, ns3::LtePdcpHeader, ns3::LteRlcAmHeader, ns3::LteRlcHeader, ns3::MacHeaderType, ns3::ManagementMessageType, ns3::MgtAddBaRequestHeader, ns3::MgtAddBaResponseHeader, ns3::MgtAssocRequestHeader, ns3::MgtAssocResponseHeader, ns3::MgtDelBaHeader, ns3::MgtProbeRequestHeader, ns3::MgtProbeResponseHeader, ns3::OfdmDownlinkFramePrefix, ns3::olsr::MessageHeader, ns3::olsr::PacketHeader, ns3::PppHeader, ns3::RadiotapHeader, ns3::RngReq, ns3::RngRsp, ns3::SeqTsHeader, ns3::SixLowPanFrag1, ns3::SixLowPanFragN, ns3::SixLowPanHc1, ns3::SixLowPanIphc, ns3::SixLowPanNhcExtension, ns3::SixLowPanUdpNhcExtension, ns3::TcpHeader, ns3::Tlv, ns3::UanHeaderCommon, ns3::UanHeaderRcAck, ns3::UanHeaderRcCts, ns3::UanHeaderRcCtsGlobal, ns3::UanHeaderRcData, ns3::UanHeaderRcRts, ns3::Ucd, ns3::UdpHeader, ns3::UlMap, ns3::VendorSpecificActionHeader, ns3::WifiActionHeader, ns3::WifiInformationElementVector, ns3::WifiMacHeader, ns3::WimaxMacToMacHeader, and ns3::SimpleRefCount< PbbPacket, Header >.

+ Collaboration diagram for ns3::Header:

Public Member Functions

virtual ~Header ()
 
virtual uint32_t Deserialize (Buffer::Iterator start)=0
 
virtual uint32_t GetSerializedSize (void) const =0
 
virtual void Print (std::ostream &os) const =0
 
virtual void Serialize (Buffer::Iterator start) const =0
 
- Public Member Functions inherited from ns3::ObjectBase
virtual ~ObjectBase ()
 Virtual destructor. More...
 
void GetAttribute (std::string name, AttributeValue &value) const
 
bool GetAttributeFailSafe (std::string name, AttributeValue &attribute) const
 
virtual TypeId GetInstanceTypeId (void) const =0
 
void SetAttribute (std::string name, const AttributeValue &value)
 
bool SetAttributeFailSafe (std::string name, const AttributeValue &value)
 
bool TraceConnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceConnectWithoutContext (std::string name, const CallbackBase &cb)
 
bool TraceDisconnect (std::string name, std::string context, const CallbackBase &cb)
 
bool TraceDisconnectWithoutContext (std::string name, const CallbackBase &cb)
 

Static Public Member Functions

static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::Chunk
static TypeId GetTypeId (void)
 
- Static Public Member Functions inherited from ns3::ObjectBase
static TypeId GetTypeId (void)
 Get the type ID. More...
 

Additional Inherited Members

- Protected Member Functions inherited from ns3::ObjectBase
void ConstructSelf (const AttributeConstructionList &attributes)
 
virtual void NotifyConstructionCompleted (void)
 This method is invoked once all member attributes have been initialized. More...
 

Detailed Description

Protocol header serialization and deserialization.

Doxygen introspection did not find any typical Config paths.

Every Protocol header which needs to be inserted or removed from a Packet instance must derive from this base class and implement the pure virtual methods defined here.

Sample code which shows how to create a new type of Header, and how to use it, is shown in the sample file samples/main-packet-header.cc


No Attributes are defined for this type.
No TraceSources are defined for this type.

Definition at line 42 of file header.h.

Constructor & Destructor Documentation

ns3::Header::~Header ( )
virtual

Definition at line 11 of file header.cc.

References NS_LOG_FUNCTION.

Member Function Documentation

virtual uint32_t ns3::Header::Deserialize ( Buffer::Iterator  start)
pure virtual
Parameters
startan iterator which points to where the header should written.
Returns
the number of bytes read.

This method is used by Packet::RemoveHeader to re-create a header from the byte buffer of a packet. The data read is expected to match bit-for-bit the representation of this header in real networks.

Implements ns3::Chunk.

Implemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, ns3::Icmpv6OptionMtu, ns3::Icmpv6ParameterError, ns3::dsr::DsrOptionAckHeader, ns3::Icmpv6TimeExceeded, ns3::dsr::DsrOptionAckReqHeader, ns3::Icmpv6TooBig, ns3::SixLowPanUdpNhcExtension, ns3::dsr::DsrOptionRerrUnsupportHeader, ns3::Icmpv6DestinationUnreachable, ns3::Icmpv6Echo, ns3::SixLowPanNhcExtension, ns3::dsr::DsrOptionRerrUnreachHeader, ns3::Icmpv6Redirection, ns3::Icmpv6RS, ns3::dsr::DsrOptionRerrHeader, ns3::MeasurementReportHeader, ns3::Ipv6ExtensionAHHeader, ns3::RrcConnectionRejectHeader, ns3::Icmpv6RA, ns3::MgtDelBaHeader, ns3::RrcConnectionReleaseHeader, ns3::Ipv6ExtensionESPHeader, ns3::SixLowPanIphc, ns3::dsr::DsrOptionSRHeader, ns3::RrcConnectionReestablishmentRejectHeader, ns3::PbbPacket, ns3::RrcConnectionReestablishmentCompleteHeader, ns3::Ipv6ExtensionLooseRoutingHeader, ns3::MgtAddBaResponseHeader, ns3::RrcConnectionReestablishmentHeader, ns3::IdealHandoverCommandHeader, ns3::Icmpv6NA, ns3::RrcConnectionReestablishmentRequestHeader, ns3::dsr::DsrOptionRrepHeader, ns3::Ipv6ExtensionRoutingHeader, ns3::SixLowPanFragN, ns3::HandoverPreparationInfoHeader, ns3::RngReq, ns3::UanHeaderRcAck, ns3::MgtAddBaRequestHeader, ns3::WifiActionHeader, ns3::IdealHandoverPreparationInfoHeader, ns3::DsaAck, ns3::SixLowPanFrag1, ns3::Ipv6ExtensionFragmentHeader, ns3::UanHeaderRcCts, ns3::Icmpv6NS, ns3::Ipv6OptionRouterAlertHeader, ns3::RrcConnectionReconfigurationHeader, ns3::DsaRsp, ns3::dsr::DsrOptionRreqHeader, ns3::RrcConnectionReconfigurationCompleteHeader, ns3::UlMap, ns3::DlMap, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6ExtensionDestinationHeader, ns3::dsr::DsrRoutingHeader, ns3::EpcX2ResourceStatusUpdateHeader, ns3::Icmpv6OptionHeader, ns3::RrcConnectionSetupCompleteHeader, ns3::DsaReq, ns3::MgtProbeResponseHeader, ns3::UanHeaderRcCtsGlobal, ns3::aodv::RerrHeader, ns3::EpcX2LoadInformationHeader, ns3::FragmentationSubheader, ns3::Ipv6ExtensionHopByHopHeader, ns3::Ipv6OptionPadnHeader, ns3::aodv::RrepAckHeader, ns3::Icmpv4TimeExceeded, ns3::EpcX2UeContextReleaseHeader, ns3::dsr::DsrOptionPadnHeader, ns3::RrcConnectionSetupHeader, ns3::Dcd, ns3::Ipv4Header, ns3::GrantManagementSubheader, ns3::MgtProbeRequestHeader, ns3::Ucd, ns3::EpcX2SnStatusTransferHeader, ns3::Icmpv4DestinationUnreachable, ns3::olsr::MessageHeader, ns3::UanHeaderRcRts, ns3::Ipv6OptionPad1Header, ns3::Icmpv6Header, ns3::SixLowPanHc1, ns3::RngRsp, ns3::aodv::RrepHeader, ns3::TcpHeader, ns3::CtrlBAckResponseHeader, ns3::dsr::DsrOptionPad1Header, ns3::RrcConnectionRequestHeader, ns3::Ipv6Header, ns3::EpcX2HandoverPreparationFailureHeader, ns3::BandwidthRequestHeader, ns3::dsr::DsrFsHeader, ns3::RrcDlCcchMessage, ns3::MgtAssocResponseHeader, ns3::RrcUlCcchMessage, ns3::VendorSpecificActionHeader, ns3::Icmpv4Echo, ns3::EpcX2HandoverRequestAckHeader, ns3::LteRlcAmHeader, anonymous_namespace{packet-test-suite.cc}::ATestHeader< N >, ns3::RrcDlDcchMessage, ns3::UdpHeader, ns3::Ipv6OptionHeader, ns3::dsr::DsrOptionHeader, ns3::aodv::RreqHeader, ns3::WifiMacHeader, ns3::GenericMacHeader, ns3::Ipv6ExtensionHeader, ns3::EthernetHeader, ns3::RrcUlDcchMessage, ns3::UanHeaderCommon, ns3::ArpHeader, ns3::olsr::PacketHeader, ns3::OfdmDownlinkFramePrefix, ns3::MgtAssocRequestHeader, ns3::UanHeaderRcData, ns3::EpcX2HandoverRequestHeader, ns3::LteRlcHeader, ns3::Tlv, ns3::RadiotapHeader, ns3::Icmpv4Header, anonymous_namespace{packet-metadata-test.cc}::HistoryHeader< N >, ns3::dot11s::PeerLinkFrameStart, ns3::ManagementMessageType, ns3::dsdv::DsdvHeader, ns3::LtePdcpHeader, ns3::PppHeader, ns3::aodv::TypeHeader, ns3::SeqTsHeader, ns3::dot11s::MeshHeader, ns3::CtrlBAckRequestHeader, ns3::WifiInformationElementVector, ns3::MacHeaderType, ns3::LlcSnapHeader, ns3::Asn1Header, ns3::flame::FlameHeader, ns3::GtpuHeader, ns3::RrcAsn1Header, ns3::WimaxMacToMacHeader, ns3::AmsduSubframeHeader, ns3::EpcX2Header, BenchHeader< N >, ns3::AlohaNoackMacHeader, and MyHeader.

Referenced by ns3::Packet::PeekHeader(), and ns3::Packet::RemoveHeader().

+ Here is the caller graph for this function:

virtual uint32_t ns3::Header::GetSerializedSize ( void  ) const
pure virtual
Returns
the expected size of the header.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. This method should return the number of bytes which are needed to store the full header data by Serialize.

Implemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, ns3::Icmpv6OptionMtu, ns3::Icmpv6ParameterError, ns3::dsr::DsrOptionAckHeader, ns3::Icmpv6TimeExceeded, ns3::dsr::DsrOptionAckReqHeader, ns3::Icmpv6TooBig, ns3::SixLowPanUdpNhcExtension, ns3::dsr::DsrOptionRerrUnsupportHeader, ns3::Icmpv6DestinationUnreachable, ns3::Icmpv6Echo, ns3::SixLowPanNhcExtension, ns3::dsr::DsrOptionRerrUnreachHeader, ns3::Icmpv6Redirection, ns3::Icmpv6RS, ns3::dsr::DsrOptionRerrHeader, ns3::Ipv6ExtensionAHHeader, ns3::MgtDelBaHeader, ns3::Icmpv6RA, ns3::Ipv6ExtensionESPHeader, ns3::dsr::DsrOptionSRHeader, ns3::SixLowPanIphc, ns3::PbbPacket, ns3::Ipv6ExtensionLooseRoutingHeader, ns3::MgtAddBaResponseHeader, ns3::IdealHandoverCommandHeader, ns3::Icmpv6NA, ns3::dsr::DsrOptionRrepHeader, ns3::Ipv6ExtensionRoutingHeader, ns3::SixLowPanFragN, ns3::RngReq, ns3::UanHeaderRcAck, ns3::MgtAddBaRequestHeader, ns3::WifiActionHeader, ns3::IdealHandoverPreparationInfoHeader, ns3::DsaAck, ns3::UanHeaderRcCts, ns3::SixLowPanFrag1, ns3::Ipv6ExtensionFragmentHeader, ns3::Icmpv6NS, ns3::Ipv6OptionRouterAlertHeader, ns3::DsaRsp, ns3::dsr::DsrOptionRreqHeader, ns3::UlMap, ns3::DlMap, ns3::Ipv6OptionJumbogramHeader, ns3::EpcX2ResourceStatusUpdateHeader, ns3::Ipv6ExtensionDestinationHeader, ns3::dsr::DsrRoutingHeader, ns3::DsaReq, ns3::MgtProbeResponseHeader, ns3::Icmpv6OptionHeader, ns3::UanHeaderRcCtsGlobal, ns3::aodv::RerrHeader, ns3::EpcX2LoadInformationHeader, ns3::FragmentationSubheader, ns3::aodv::RrepAckHeader, ns3::Icmpv4TimeExceeded, ns3::Ipv6ExtensionHopByHopHeader, ns3::EpcX2UeContextReleaseHeader, ns3::Ipv6OptionPadnHeader, ns3::Dcd, ns3::Ipv4Header, ns3::GrantManagementSubheader, ns3::dsr::DsrOptionPadnHeader, ns3::MgtProbeRequestHeader, ns3::Ucd, ns3::EpcX2SnStatusTransferHeader, ns3::Icmpv4DestinationUnreachable, ns3::olsr::MessageHeader, ns3::UanHeaderRcRts, ns3::RngRsp, ns3::aodv::RrepHeader, ns3::TcpHeader, ns3::CtrlBAckResponseHeader, ns3::Ipv6OptionPad1Header, ns3::Icmpv6Header, ns3::SixLowPanHc1, ns3::dsr::DsrOptionPad1Header, ns3::EpcX2HandoverPreparationFailureHeader, ns3::BandwidthRequestHeader, ns3::Ipv6Header, ns3::MgtAssocResponseHeader, ns3::dsr::DsrFsHeader, ns3::VendorSpecificActionHeader, ns3::Icmpv4Echo, ns3::EpcX2HandoverRequestAckHeader, ns3::LteRlcAmHeader, OptionWithAlignmentHeader, ns3::UdpHeader, anonymous_namespace{packet-test-suite.cc}::ATestHeader< N >, ns3::aodv::RreqHeader, ns3::WifiMacHeader, ns3::GenericMacHeader, ns3::dsr::DsrOptionHeader, ns3::Ipv6OptionHeader, ns3::EthernetHeader, ns3::UanHeaderCommon, ns3::ArpHeader, ns3::olsr::PacketHeader, ns3::OfdmDownlinkFramePrefix, ns3::Ipv6ExtensionHeader, ns3::MgtAssocRequestHeader, ns3::UanHeaderRcData, ns3::EpcX2HandoverRequestHeader, ns3::LteRlcHeader, ns3::Tlv, ns3::Icmpv4Header, anonymous_namespace{packet-metadata-test.cc}::HistoryHeader< N >, ns3::dot11s::PeerLinkFrameStart, ns3::ManagementMessageType, OptionWithoutAlignmentHeader, ns3::PppHeader, ns3::dsdv::DsdvHeader, ns3::LtePdcpHeader, ns3::aodv::TypeHeader, ns3::SeqTsHeader, ns3::dot11s::MeshHeader, ns3::RadiotapHeader, ns3::CtrlBAckRequestHeader, ns3::MacHeaderType, ns3::LlcSnapHeader, ns3::WifiInformationElementVector, ns3::flame::FlameHeader, ns3::Asn1Header, ns3::GtpuHeader, ns3::WimaxMacToMacHeader, ns3::AmsduSubframeHeader, ns3::EpcX2Header, BenchHeader< N >, ns3::AlohaNoackMacHeader, and MyHeader.

Referenced by ns3::Packet::AddHeader(), main(), and ns3::PcapFile::Write().

+ Here is the caller graph for this function:

TypeId ns3::Header::GetTypeId ( void  )
static

Definition at line 17 of file header.cc.

References ns3::TypeId::SetParent().

Referenced by ns3::Tlv::GetInstanceTypeId(), and ns3::PacketMetadata::ItemIterator::Next().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

virtual void ns3::Header::Print ( std::ostream &  os) const
pure virtual
Parameters
osoutput stream This method is used by Packet::Print to print the content of a trailer as ascii data to a c++ output stream. Although the trailer is free to format its output as it wishes, it is recommended to follow a few rules to integrate with the packet pretty printer: start with flags, small field values located between a pair of parens. Values should be separated by whitespace. Follow the parens with the important fields, separated by whitespace. i.e.: (field1 val1 field2 val2 field3 val3) field4 val4 field5 val5

Implements ns3::Chunk.

Implemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, ns3::Icmpv6OptionMtu, ns3::Icmpv6ParameterError, ns3::dsr::DsrOptionAckHeader, ns3::Icmpv6TimeExceeded, ns3::dsr::DsrOptionAckReqHeader, ns3::Icmpv6TooBig, ns3::SixLowPanUdpNhcExtension, ns3::dsr::DsrOptionRerrUnsupportHeader, ns3::Icmpv6DestinationUnreachable, ns3::Icmpv6Echo, ns3::SixLowPanNhcExtension, ns3::dsr::DsrOptionRerrUnreachHeader, ns3::Icmpv6Redirection, ns3::Icmpv6RS, ns3::dsr::DsrOptionRerrHeader, ns3::MeasurementReportHeader, ns3::RrcConnectionRejectHeader, ns3::Ipv6ExtensionAHHeader, ns3::MgtDelBaHeader, ns3::RrcConnectionReleaseHeader, ns3::Icmpv6RA, ns3::RrcConnectionReestablishmentRejectHeader, ns3::Ipv6ExtensionESPHeader, ns3::PbbPacket, ns3::dsr::DsrOptionSRHeader, ns3::SixLowPanIphc, ns3::RrcConnectionReestablishmentCompleteHeader, ns3::MgtAddBaResponseHeader, ns3::Ipv6ExtensionLooseRoutingHeader, ns3::RrcConnectionReestablishmentHeader, ns3::IdealHandoverCommandHeader, ns3::RrcConnectionReestablishmentRequestHeader, ns3::Icmpv6NA, ns3::dsr::DsrOptionRrepHeader, ns3::HandoverPreparationInfoHeader, ns3::Ipv6ExtensionRoutingHeader, ns3::SixLowPanFragN, ns3::RngReq, ns3::UanHeaderRcAck, ns3::MgtAddBaRequestHeader, ns3::WifiActionHeader, ns3::IdealHandoverPreparationInfoHeader, ns3::DsaAck, ns3::UanHeaderRcCts, ns3::SixLowPanFrag1, ns3::Ipv6ExtensionFragmentHeader, ns3::Icmpv6NS, ns3::Ipv6OptionRouterAlertHeader, ns3::RrcConnectionReconfigurationHeader, ns3::DsaRsp, ns3::dsr::DsrOptionRreqHeader, ns3::RrcConnectionReconfigurationCompleteHeader, ns3::UlMap, ns3::DlMap, ns3::EpcX2ResourceStatusUpdateHeader, ns3::RrcConnectionSetupCompleteHeader, ns3::Ipv6OptionJumbogramHeader, ns3::DsaReq, ns3::dsr::DsrRoutingHeader, ns3::Ipv6ExtensionDestinationHeader, ns3::UanHeaderRcCtsGlobal, ns3::MgtProbeResponseHeader, ns3::aodv::RerrHeader, ns3::Icmpv6OptionHeader, ns3::EpcX2LoadInformationHeader, ns3::FragmentationSubheader, ns3::aodv::RrepAckHeader, ns3::Icmpv4TimeExceeded, ns3::EpcX2UeContextReleaseHeader, ns3::Ipv6ExtensionHopByHopHeader, ns3::Ipv6OptionPadnHeader, ns3::RrcConnectionSetupHeader, ns3::Dcd, ns3::Ipv4Header, ns3::GrantManagementSubheader, ns3::dsr::DsrOptionPadnHeader, ns3::MgtProbeRequestHeader, ns3::Ucd, ns3::EpcX2SnStatusTransferHeader, ns3::Icmpv4DestinationUnreachable, ns3::olsr::MessageHeader, ns3::UanHeaderRcRts, ns3::aodv::RrepHeader, ns3::RrcConnectionRequestHeader, ns3::RngRsp, ns3::TcpHeader, ns3::CtrlBAckResponseHeader, ns3::Ipv6OptionPad1Header, ns3::Icmpv6Header, ns3::EpcX2HandoverPreparationFailureHeader, ns3::SixLowPanHc1, ns3::BandwidthRequestHeader, ns3::dsr::DsrOptionPad1Header, ns3::RrcDlCcchMessage, ns3::Ipv6Header, ns3::MgtAssocResponseHeader, ns3::dsr::DsrFsHeader, ns3::RrcUlCcchMessage, ns3::VendorSpecificActionHeader, ns3::Icmpv4Echo, ns3::EpcX2HandoverRequestAckHeader, anonymous_namespace{packet-test-suite.cc}::ATestHeader< N >, ns3::LteRlcAmHeader, ns3::RrcDlDcchMessage, ns3::UdpHeader, ns3::aodv::RreqHeader, ns3::RrcUlDcchMessage, ns3::WifiMacHeader, ns3::GenericMacHeader, ns3::EthernetHeader, ns3::UanHeaderCommon, ns3::dsr::DsrOptionHeader, ns3::Ipv6OptionHeader, ns3::ArpHeader, ns3::olsr::PacketHeader, ns3::OfdmDownlinkFramePrefix, ns3::RadiotapHeader, ns3::MgtAssocRequestHeader, ns3::UanHeaderRcData, ns3::Ipv6ExtensionHeader, ns3::EpcX2HandoverRequestHeader, ns3::RrcAsn1Header, ns3::Icmpv4Header, ns3::LteRlcHeader, ns3::Tlv, anonymous_namespace{packet-metadata-test.cc}::HistoryHeader< N >, ns3::dot11s::PeerLinkFrameStart, ns3::ManagementMessageType, ns3::dsdv::DsdvHeader, ns3::aodv::TypeHeader, ns3::PppHeader, ns3::LtePdcpHeader, ns3::SeqTsHeader, ns3::WifiInformationElementVector, ns3::CtrlBAckRequestHeader, ns3::MacHeaderType, ns3::Asn1Header, ns3::LlcSnapHeader, ns3::GtpuHeader, ns3::flame::FlameHeader, ns3::WimaxMacToMacHeader, ns3::EpcX2Header, ns3::dot11s::MeshHeader, ns3::AlohaNoackMacHeader, ns3::AmsduSubframeHeader, BenchHeader< N >, and MyHeader.

Referenced by ns3::operator<<().

+ Here is the caller graph for this function:

virtual void ns3::Header::Serialize ( Buffer::Iterator  start) const
pure virtual
Parameters
startan iterator which points to where the header should be written.

This method is used by Packet::AddHeader to store a header into the byte buffer of a packet. The data written is expected to match bit-for-bit the representation of this header in a real network.

Implemented in ns3::Icmpv6OptionRedirected, ns3::Icmpv6OptionLinkLayerAddress, ns3::Icmpv6OptionPrefixInformation, ns3::Icmpv6OptionMtu, ns3::Icmpv6ParameterError, ns3::dsr::DsrOptionAckHeader, ns3::Icmpv6TimeExceeded, ns3::dsr::DsrOptionAckReqHeader, ns3::Icmpv6TooBig, ns3::SixLowPanUdpNhcExtension, ns3::dsr::DsrOptionRerrUnsupportHeader, ns3::Icmpv6DestinationUnreachable, ns3::Icmpv6Echo, ns3::SixLowPanNhcExtension, ns3::dsr::DsrOptionRerrUnreachHeader, ns3::Icmpv6Redirection, ns3::Icmpv6RS, ns3::dsr::DsrOptionRerrHeader, ns3::Ipv6ExtensionAHHeader, ns3::MgtDelBaHeader, ns3::Icmpv6RA, ns3::Ipv6ExtensionESPHeader, ns3::dsr::DsrOptionSRHeader, ns3::SixLowPanIphc, ns3::PbbPacket, ns3::Ipv6ExtensionLooseRoutingHeader, ns3::MgtAddBaResponseHeader, ns3::IdealHandoverCommandHeader, ns3::Icmpv6NA, ns3::dsr::DsrOptionRrepHeader, ns3::Ipv6ExtensionRoutingHeader, ns3::SixLowPanFragN, ns3::RngReq, ns3::UanHeaderRcAck, ns3::MgtAddBaRequestHeader, ns3::WifiActionHeader, ns3::IdealHandoverPreparationInfoHeader, ns3::DsaAck, ns3::UanHeaderRcCts, ns3::SixLowPanFrag1, ns3::Ipv6ExtensionFragmentHeader, ns3::Icmpv6NS, ns3::Ipv6OptionRouterAlertHeader, ns3::DsaRsp, ns3::dsr::DsrOptionRreqHeader, ns3::UlMap, ns3::DlMap, ns3::Ipv6OptionJumbogramHeader, ns3::Ipv6ExtensionDestinationHeader, ns3::dsr::DsrRoutingHeader, ns3::EpcX2ResourceStatusUpdateHeader, ns3::DsaReq, ns3::Icmpv6OptionHeader, ns3::MgtProbeResponseHeader, ns3::UanHeaderRcCtsGlobal, ns3::aodv::RerrHeader, ns3::EpcX2LoadInformationHeader, ns3::FragmentationSubheader, ns3::Ipv6ExtensionHopByHopHeader, ns3::aodv::RrepAckHeader, ns3::Icmpv4TimeExceeded, ns3::Ipv6OptionPadnHeader, ns3::EpcX2UeContextReleaseHeader, ns3::Dcd, ns3::dsr::DsrOptionPadnHeader, ns3::Ipv4Header, ns3::GrantManagementSubheader, ns3::MgtProbeRequestHeader, ns3::Ucd, ns3::EpcX2SnStatusTransferHeader, ns3::Icmpv4DestinationUnreachable, ns3::olsr::MessageHeader, ns3::UanHeaderRcRts, ns3::Ipv6OptionPad1Header, ns3::Icmpv6Header, ns3::RngRsp, ns3::aodv::RrepHeader, ns3::TcpHeader, ns3::SixLowPanHc1, ns3::CtrlBAckResponseHeader, ns3::dsr::DsrOptionPad1Header, ns3::EpcX2HandoverPreparationFailureHeader, ns3::BandwidthRequestHeader, ns3::Ipv6Header, ns3::dsr::DsrFsHeader, ns3::MgtAssocResponseHeader, ns3::VendorSpecificActionHeader, ns3::Icmpv4Echo, ns3::EpcX2HandoverRequestAckHeader, ns3::LteRlcAmHeader, OptionWithAlignmentHeader, ns3::UdpHeader, anonymous_namespace{packet-test-suite.cc}::ATestHeader< N >, ns3::aodv::RreqHeader, ns3::dsr::DsrOptionHeader, ns3::Ipv6OptionHeader, ns3::WifiMacHeader, ns3::GenericMacHeader, ns3::EthernetHeader, ns3::UanHeaderCommon, ns3::Ipv6ExtensionHeader, ns3::ArpHeader, ns3::olsr::PacketHeader, ns3::OfdmDownlinkFramePrefix, ns3::MgtAssocRequestHeader, ns3::UanHeaderRcData, ns3::EpcX2HandoverRequestHeader, ns3::LteRlcHeader, ns3::Tlv, ns3::Icmpv4Header, anonymous_namespace{packet-metadata-test.cc}::HistoryHeader< N >, OptionWithoutAlignmentHeader, ns3::dot11s::PeerLinkFrameStart, ns3::ManagementMessageType, ns3::RadiotapHeader, ns3::dsdv::DsdvHeader, ns3::LtePdcpHeader, ns3::PppHeader, ns3::aodv::TypeHeader, ns3::SeqTsHeader, ns3::dot11s::MeshHeader, ns3::CtrlBAckRequestHeader, ns3::MacHeaderType, ns3::LlcSnapHeader, ns3::WifiInformationElementVector, ns3::flame::FlameHeader, ns3::Asn1Header, ns3::GtpuHeader, ns3::WimaxMacToMacHeader, ns3::AmsduSubframeHeader, ns3::EpcX2Header, BenchHeader< N >, ns3::AlohaNoackMacHeader, and MyHeader.

Referenced by ns3::Packet::AddHeader(), and ns3::PcapFile::Write().

+ Here is the caller graph for this function:


The documentation for this class was generated from the following files: