A Discrete-Event Network Simulator
API
ns3::ofi::Port Struct Reference

Port and its metadata. More...

#include "openflow-interface.h"

+ Collaboration diagram for ns3::ofi::Port:

Public Member Functions

 Port ()
 

Public Attributes

uint32_t config
 Some subset of OFPPC_* flags. More...
 
unsigned long long int mpls_ttl0_dropped
 Counter of packets dropped due to MPLS TTL. More...
 
Ptr< NetDevicenetdev
 NetDevice pointer. More...
 
unsigned long long int rx_bytes
 Counter of Rx bytes. More...
 
unsigned long long int rx_packets
 Counter of Rx packets. More...
 
uint32_t state
 Some subset of OFPPS_* flags. More...
 
unsigned long long int tx_bytes
 Counter of Tx bytes. More...
 
unsigned long long int tx_dropped
 Counter of Tx dropped packets. More...
 
unsigned long long int tx_packets
 Counter of Tx packets. More...
 

Detailed Description

Port and its metadata.

We need to store port metadata, because OpenFlow dictates that there exists a type of request where the Controller asks for data about a port, or multiple ports. Otherwise, we'd refer to it via Ptr<NetDevice> everywhere.

Definition at line 117 of file openflow-interface.h.

Constructor & Destructor Documentation

◆ Port()

ns3::ofi::Port::Port ( )
inline

Definition at line 119 of file openflow-interface.h.

Member Data Documentation

◆ config

◆ mpls_ttl0_dropped

unsigned long long int ns3::ofi::Port::mpls_ttl0_dropped

Counter of packets dropped due to MPLS TTL.

Definition at line 140 of file openflow-interface.h.

Referenced by ns3::ofi::Stats::PortStatsDump().

◆ netdev

◆ rx_bytes

unsigned long long int ns3::ofi::Port::rx_bytes

Counter of Rx bytes.

Definition at line 137 of file openflow-interface.h.

Referenced by ns3::ofi::Stats::PortStatsDump().

◆ rx_packets

unsigned long long int ns3::ofi::Port::rx_packets

Counter of Rx packets.

Definition at line 135 of file openflow-interface.h.

Referenced by ns3::ofi::Stats::PortStatsDump().

◆ state

uint32_t ns3::ofi::Port::state

Some subset of OFPPS_* flags.

Definition at line 133 of file openflow-interface.h.

Referenced by ns3::OpenFlowSwitchNetDevice::FillPortDesc(), and ns3::OpenFlowSwitchNetDevice::UpdatePortStatus().

◆ tx_bytes

unsigned long long int ns3::ofi::Port::tx_bytes

Counter of Tx bytes.

Definition at line 138 of file openflow-interface.h.

Referenced by ns3::OpenFlowSwitchNetDevice::OutputPacket(), and ns3::ofi::Stats::PortStatsDump().

◆ tx_dropped

unsigned long long int ns3::ofi::Port::tx_dropped

Counter of Tx dropped packets.

Definition at line 139 of file openflow-interface.h.

Referenced by ns3::OpenFlowSwitchNetDevice::OutputPacket(), and ns3::ofi::Stats::PortStatsDump().

◆ tx_packets

unsigned long long int ns3::ofi::Port::tx_packets

Counter of Tx packets.

Definition at line 136 of file openflow-interface.h.

Referenced by ns3::OpenFlowSwitchNetDevice::OutputPacket(), and ns3::ofi::Stats::PortStatsDump().


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