INET Framework for OMNeT++/OMNEST
inet::IPv6NeighbourSolicitation Class Reference

Class generated from inet/networklayer/icmpv6/IPv6NDMessage.msg:141 by nedtool. More...

#include <IPv6NDMessage_m.h>

Inheritance diagram for inet::IPv6NeighbourSolicitation:
inet::IPv6NDMessage inet::ICMPv6Message

Public Member Functions

 IPv6NeighbourSolicitation (const char *name=nullptr, short kind=0)
 
 IPv6NeighbourSolicitation (const IPv6NeighbourSolicitation &other)
 
virtual ~IPv6NeighbourSolicitation ()
 
IPv6NeighbourSolicitationoperator= (const IPv6NeighbourSolicitation &other)
 
virtual IPv6NeighbourSolicitationdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual IPv6AddressgetTargetAddress ()
 
virtual const IPv6AddressgetTargetAddress () const
 
virtual void setTargetAddress (const IPv6Address &targetAddress)
 
virtual MACAddressgetSourceLinkLayerAddress ()
 
virtual const MACAddressgetSourceLinkLayerAddress () const
 
virtual void setSourceLinkLayerAddress (const MACAddress &sourceLinkLayerAddress)
 
- Public Member Functions inherited from inet::IPv6NDMessage
 IPv6NDMessage (const char *name=nullptr, short kind=0)
 
 IPv6NDMessage (const IPv6NDMessage &other)
 
virtual ~IPv6NDMessage ()
 
IPv6NDMessageoperator= (const IPv6NDMessage &other)
 
virtual int getCode () const
 
virtual void setCode (int code)
 
- Public Member Functions inherited from inet::ICMPv6Message
 ICMPv6Message (const char *name=nullptr, short kind=0)
 
 ICMPv6Message (const ICMPv6Message &other)
 
virtual ~ICMPv6Message ()
 
ICMPv6Messageoperator= (const ICMPv6Message &other)
 
virtual int getType () const
 
virtual void setType (int type)
 

Protected Member Functions

bool operator== (const IPv6NeighbourSolicitation &)
 
- Protected Member Functions inherited from inet::IPv6NDMessage
bool operator== (const IPv6NDMessage &)
 
- Protected Member Functions inherited from inet::ICMPv6Message
bool operator== (const ICMPv6Message &)
 

Protected Attributes

IPv6Address targetAddress
 
MACAddress sourceLinkLayerAddress
 
- Protected Attributes inherited from inet::IPv6NDMessage
int code
 
- Protected Attributes inherited from inet::ICMPv6Message
int type
 

Private Member Functions

void copy (const IPv6NeighbourSolicitation &other)
 

Detailed Description

Class generated from inet/networklayer/icmpv6/IPv6NDMessage.msg:141 by nedtool.

//
// Neighbour Solicitation Message Format
// RFC 4861 Section 4.3
//
packet IPv6NeighbourSolicitation extends IPv6NDMessage
{
    //Additional ICMP fields
    IPv6Address targetAddress;// MUST NOT be a multicast address.
    //Possible Options
    // The link-layer address for the sender.
    // MUST NOT be included when the source IP address is the unspecified address.
    // Otherwise, on link layers that have addresses this option MUST be included in multicast
    // solicitations and SHOULD be included in unicast solicitations.
    MACAddress sourceLinkLayerAddress;
}

Constructor & Destructor Documentation

inet::IPv6NeighbourSolicitation::IPv6NeighbourSolicitation ( const char *  name = nullptr,
short  kind = 0 
)
inet::IPv6NeighbourSolicitation::IPv6NeighbourSolicitation ( const IPv6NeighbourSolicitation other)
virtual inet::IPv6NeighbourSolicitation::~IPv6NeighbourSolicitation ( )
virtual

Member Function Documentation

void inet::IPv6NeighbourSolicitation::copy ( const IPv6NeighbourSolicitation other)
private
virtual IPv6NeighbourSolicitation* inet::IPv6NeighbourSolicitation::dup ( ) const
inlineoverridevirtual

Reimplemented from inet::IPv6NDMessage.

466 {return new IPv6NeighbourSolicitation(*this);}
IPv6NeighbourSolicitation(const char *name=nullptr, short kind=0)
virtual const MACAddress& inet::IPv6NeighbourSolicitation::getSourceLinkLayerAddress ( ) const
inlinevirtual

Referenced by getSourceLinkLayerAddress().

475 {return const_cast<IPv6NeighbourSolicitation*>(this)->getSourceLinkLayerAddress();}
virtual MACAddress & getSourceLinkLayerAddress()
IPv6NeighbourSolicitation(const char *name=nullptr, short kind=0)
virtual const IPv6Address& inet::IPv6NeighbourSolicitation::getTargetAddress ( ) const
inlinevirtual

Referenced by getTargetAddress().

472 {return const_cast<IPv6NeighbourSolicitation*>(this)->getTargetAddress();}
virtual IPv6Address & getTargetAddress()
IPv6NeighbourSolicitation(const char *name=nullptr, short kind=0)
IPv6NeighbourSolicitation& inet::IPv6NeighbourSolicitation::operator= ( const IPv6NeighbourSolicitation other)
bool inet::IPv6NeighbourSolicitation::operator== ( const IPv6NeighbourSolicitation )
protected
virtual void inet::IPv6NeighbourSolicitation::parsimPack ( omnetpp::cCommBuffer *  b) const
overridevirtual

Reimplemented from inet::IPv6NDMessage.

Referenced by inet::doParsimPacking().

virtual void inet::IPv6NeighbourSolicitation::parsimUnpack ( omnetpp::cCommBuffer *  b)
overridevirtual

Reimplemented from inet::IPv6NDMessage.

Referenced by inet::doParsimUnpacking().

virtual void inet::IPv6NeighbourSolicitation::setSourceLinkLayerAddress ( const MACAddress sourceLinkLayerAddress)
virtual
virtual void inet::IPv6NeighbourSolicitation::setTargetAddress ( const IPv6Address targetAddress)
virtual

Member Data Documentation

MACAddress inet::IPv6NeighbourSolicitation::sourceLinkLayerAddress
protected
IPv6Address inet::IPv6NeighbourSolicitation::targetAddress
protected

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