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

Class generated from inet/networklayer/arp/ipv4/ARPPacket.msg:62 by nedtool. More...

#include <ARPPacket_m.h>

Inheritance diagram for inet::ARPPacket:

Public Member Functions

 ARPPacket (const char *name=nullptr, short kind=0)
 
 ARPPacket (const ARPPacket &other)
 
virtual ~ARPPacket ()
 
ARPPacketoperator= (const ARPPacket &other)
 
virtual ARPPacketdup () const override
 
virtual void parsimPack (omnetpp::cCommBuffer *b) const override
 
virtual void parsimUnpack (omnetpp::cCommBuffer *b) override
 
virtual int getOpcode () const
 
virtual void setOpcode (int opcode)
 
virtual MACAddressgetSrcMACAddress ()
 
virtual const MACAddressgetSrcMACAddress () const
 
virtual void setSrcMACAddress (const MACAddress &srcMACAddress)
 
virtual MACAddressgetDestMACAddress ()
 
virtual const MACAddressgetDestMACAddress () const
 
virtual void setDestMACAddress (const MACAddress &destMACAddress)
 
virtual IPv4AddressgetSrcIPAddress ()
 
virtual const IPv4AddressgetSrcIPAddress () const
 
virtual void setSrcIPAddress (const IPv4Address &srcIPAddress)
 
virtual IPv4AddressgetDestIPAddress ()
 
virtual const IPv4AddressgetDestIPAddress () const
 
virtual void setDestIPAddress (const IPv4Address &destIPAddress)
 

Protected Member Functions

bool operator== (const ARPPacket &)
 

Protected Attributes

int opcode
 
MACAddress srcMACAddress
 
MACAddress destMACAddress
 
IPv4Address srcIPAddress
 
IPv4Address destIPAddress
 

Private Member Functions

void copy (const ARPPacket &other)
 

Detailed Description

Class generated from inet/networklayer/arp/ipv4/ARPPacket.msg:62 by nedtool.

//
// ARP packet. This is a specialized version: prepared for IEEE 802 hardware
// addresses and IPv4. Packet fields are therefore represented by C++ classes
// MACAddress and IPv4Address. Also, some ARP protocol header fields are
// not modelled explicitly (their values are implied):
//   - hardwareType (not needed for modelling);
//   - protocol type (0x800 IPv4)
//   - hardware address length (6)
//   - protocol address length (4)
//
packet ARPPacket
{
    int opcode @enum(ARPOpcode);
    MACAddress srcMACAddress;
    MACAddress destMACAddress;
    IPv4Address srcIPAddress;
    IPv4Address destIPAddress;
}

Constructor & Destructor Documentation

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

Member Function Documentation

void inet::ARPPacket::copy ( const ARPPacket other)
private
virtual ARPPacket* inet::ARPPacket::dup ( ) const
inlineoverridevirtual
110 {return new ARPPacket(*this);}
ARPPacket(const char *name=nullptr, short kind=0)
virtual const IPv4Address& inet::ARPPacket::getDestIPAddress ( ) const
inlinevirtual

Referenced by getDestIPAddress().

127 {return const_cast<ARPPacket*>(this)->getDestIPAddress();}
ARPPacket(const char *name=nullptr, short kind=0)
virtual IPv4Address & getDestIPAddress()
virtual const MACAddress& inet::ARPPacket::getDestMACAddress ( ) const
inlinevirtual

Referenced by getDestMACAddress().

121 {return const_cast<ARPPacket*>(this)->getDestMACAddress();}
ARPPacket(const char *name=nullptr, short kind=0)
virtual MACAddress & getDestMACAddress()
virtual int inet::ARPPacket::getOpcode ( ) const
virtual
virtual const IPv4Address& inet::ARPPacket::getSrcIPAddress ( ) const
inlinevirtual

Referenced by getSrcIPAddress().

124 {return const_cast<ARPPacket*>(this)->getSrcIPAddress();}
ARPPacket(const char *name=nullptr, short kind=0)
virtual IPv4Address & getSrcIPAddress()
virtual const MACAddress& inet::ARPPacket::getSrcMACAddress ( ) const
inlinevirtual

Referenced by getSrcMACAddress().

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

Referenced by inet::doParsimPacking().

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

Referenced by inet::doParsimUnpacking().

virtual void inet::ARPPacket::setDestIPAddress ( const IPv4Address destIPAddress)
virtual
virtual void inet::ARPPacket::setDestMACAddress ( const MACAddress destMACAddress)
virtual
virtual void inet::ARPPacket::setOpcode ( int  opcode)
virtual
virtual void inet::ARPPacket::setSrcIPAddress ( const IPv4Address srcIPAddress)
virtual
virtual void inet::ARPPacket::setSrcMACAddress ( const MACAddress srcMACAddress)
virtual

Member Data Documentation

IPv4Address inet::ARPPacket::destIPAddress
protected
MACAddress inet::ARPPacket::destMACAddress
protected
int inet::ARPPacket::opcode
protected
IPv4Address inet::ARPPacket::srcIPAddress
protected
MACAddress inet::ARPPacket::srcMACAddress
protected

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