INET Framework for OMNeT++/OMNEST
inet::RipNetworkInterface Struct Reference

Holds the RIP configuration of the interfaces. More...

#include <Rip.h>

Public Member Functions

 RipNetworkInterface (const NetworkInterface *ie)
 

Public Attributes

const NetworkInterfaceie = nullptr
 
int metric = 0
 
RipMode mode = NO_RIP
 

Detailed Description

Holds the RIP configuration of the interfaces.

We could store this data in the NetworkInterface* itself, but it contains only 5 holes for protocol data, and they are used by network layer protocols only. Therefore Rip manages its own table of these entries.

Constructor & Destructor Documentation

◆ RipNetworkInterface()

inet::RipNetworkInterface::RipNetworkInterface ( const NetworkInterface ie)
inline
50  : ie(ie), metric(1), mode(NO_RIP)
51  {
52  ASSERT(!ie->isLoopback());
53  ASSERT(ie->isMulticast());
54  }

Member Data Documentation

◆ ie

◆ metric

◆ mode


The documentation for this struct was generated from the following file:
inet::NetworkInterface::isLoopback
bool isLoopback() const
Definition: NetworkInterface.h:241
inet::RipNetworkInterface::ie
const NetworkInterface * ie
Definition: Rip.h:45
inet::NO_RIP
@ NO_RIP
Definition: Rip.h:29
inet::RipNetworkInterface::metric
int metric
Definition: Rip.h:46
inet::NetworkInterface::isMulticast
bool isMulticast() const
Definition: NetworkInterface.h:239
inet::RipNetworkInterface::mode
RipMode mode
Definition: Rip.h:47