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

Generic network protocol specific data for an InterfaceEntry, stores generic network address. More...

#include <GenericNetworkProtocolInterfaceData.h>

Inheritance diagram for inet::GenericNetworkProtocolInterfaceData:
inet::InterfaceProtocolData

Public Types

enum  { F_ADDRESS, F_METRIC }
 

Public Member Functions

 GenericNetworkProtocolInterfaceData ()
 
virtual std::string info () const override
 
virtual std::string detailedInfo () const override
 
virtual void joinMulticastGroup (L3Address address)
 
Getters
L3Address getAddress () const
 
int getMetric () const
 
Setters
virtual void setAddress (L3Address a)
 
virtual void setMetric (int m)
 
- Public Member Functions inherited from inet::InterfaceProtocolData
 InterfaceProtocolData ()
 
InterfaceEntrygetInterfaceEntry () const
 Returns the InterfaceEntry that contains this data object, or nullptr. More...
 

Protected Member Functions

void changed1 (int fieldId)
 
- Protected Member Functions inherited from inet::InterfaceProtocolData
virtual void changed (simsignal_t signalID, int fieldId)
 

Protected Attributes

L3Address inetAddr
 address of interface More...
 
int metric
 link "cost"; see e.g. MS KB article Q299540 //TODO needed??? More...
 
- Protected Attributes inherited from inet::InterfaceProtocolData
InterfaceEntryownerp = nullptr
 

Private Member Functions

 GenericNetworkProtocolInterfaceData (const GenericNetworkProtocolInterfaceData &obj)
 
GenericNetworkProtocolInterfaceDataoperator= (const GenericNetworkProtocolInterfaceData &obj)
 

Detailed Description

Generic network protocol specific data for an InterfaceEntry, stores generic network address.

See also
InterfaceEntry

Member Enumeration Documentation

anonymous enum
Enumerator
F_ADDRESS 
F_METRIC 
43 { F_ADDRESS, F_METRIC };
Definition: GenericNetworkProtocolInterfaceData.h:43
Definition: GenericNetworkProtocolInterfaceData.h:43

Constructor & Destructor Documentation

inet::GenericNetworkProtocolInterfaceData::GenericNetworkProtocolInterfaceData ( const GenericNetworkProtocolInterfaceData obj)
private
inet::GenericNetworkProtocolInterfaceData::GenericNetworkProtocolInterfaceData ( )
inline
54 { metric = 0; }
int metric
link "cost"; see e.g. MS KB article Q299540 //TODO needed???
Definition: GenericNetworkProtocolInterfaceData.h:39

Member Function Documentation

void inet::GenericNetworkProtocolInterfaceData::changed1 ( int  fieldId)
inlineprotected
virtual void changed(simsignal_t signalID, int fieldId)
Definition: InterfaceEntry.cc:51
simsignal_t NF_INTERFACE_GENERICNETWORKPROTOCOLCONFIG_CHANGED
Definition: NotifierConsts.cc:52
std::string inet::GenericNetworkProtocolInterfaceData::detailedInfo ( ) const
overridevirtual
33 {
34  std::stringstream out;
35  out << "generic addr:" << getAddress() << "\n"
36  << "Metric: " << getMetric() << "\n";
37  return out.str();
38 }
L3Address getAddress() const
Definition: GenericNetworkProtocolInterfaceData.h:60
int getMetric() const
Definition: GenericNetworkProtocolInterfaceData.h:61
int inet::GenericNetworkProtocolInterfaceData::getMetric ( ) const
inline

Referenced by detailedInfo().

61 { return metric; }
int metric
link "cost"; see e.g. MS KB article Q299540 //TODO needed???
Definition: GenericNetworkProtocolInterfaceData.h:39
std::string inet::GenericNetworkProtocolInterfaceData::info ( ) const
overridevirtual
26 {
27  std::stringstream out;
28  out << "generic addr:" << getAddress();
29  return out.str();
30 }
L3Address getAddress() const
Definition: GenericNetworkProtocolInterfaceData.h:60
virtual void inet::GenericNetworkProtocolInterfaceData::joinMulticastGroup ( L3Address  address)
inlinevirtual
70 {}
GenericNetworkProtocolInterfaceData& inet::GenericNetworkProtocolInterfaceData::operator= ( const GenericNetworkProtocolInterfaceData obj)
private
virtual void inet::GenericNetworkProtocolInterfaceData::setAddress ( L3Address  a)
inlinevirtual

Referenced by inet::GenericRoutingTable::configureInterface().

66 { inetAddr = a; changed1(F_ADDRESS); }
L3Address inetAddr
address of interface
Definition: GenericNetworkProtocolInterfaceData.h:38
void changed1(int fieldId)
Definition: GenericNetworkProtocolInterfaceData.h:46
Definition: GenericNetworkProtocolInterfaceData.h:43
virtual void inet::GenericNetworkProtocolInterfaceData::setMetric ( int  m)
inlinevirtual

Referenced by inet::GenericRoutingTable::configureInterface().

67 { metric = m; changed1(F_METRIC); }
Definition: GenericNetworkProtocolInterfaceData.h:43
void changed1(int fieldId)
Definition: GenericNetworkProtocolInterfaceData.h:46
int metric
link "cost"; see e.g. MS KB article Q299540 //TODO needed???
Definition: GenericNetworkProtocolInterfaceData.h:39
value< double, units::m > m
Definition: Units.h:1047

Member Data Documentation

L3Address inet::GenericNetworkProtocolInterfaceData::inetAddr
protected

address of interface

int inet::GenericNetworkProtocolInterfaceData::metric
protected

link "cost"; see e.g. MS KB article Q299540 //TODO needed???


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