Port and its metadata. More...
#include "openflow-interface.h"
Public Member Functions | |
Port () | |
Public Attributes | |
uint32_t | config |
Some subset of OFPPC_* flags. | |
unsigned long long int | mpls_ttl0_dropped |
Counter of packets dropped due to MPLS TTL. | |
Ptr< NetDevice > | netdev |
NetDevice pointer. | |
unsigned long long int | rx_bytes |
Counter of Rx bytes. | |
unsigned long long int | rx_packets |
Counter of Rx packets. | |
uint32_t | state |
Some subset of OFPPS_* flags. | |
unsigned long long int | tx_bytes |
Counter of Tx bytes. | |
unsigned long long int | tx_dropped |
Counter of Tx dropped packets. | |
unsigned long long int | tx_packets |
Counter of Tx packets. | |
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 106 of file openflow-interface.h.
|
inline |
Definition at line 108 of file openflow-interface.h.
uint32_t ns3::ofi::Port::config |
Some subset of OFPPC_* flags.
Definition at line 121 of file openflow-interface.h.
Referenced by ns3::OpenFlowSwitchNetDevice::AddSwitchPort(), ns3::OpenFlowSwitchNetDevice::FillPortDesc(), ns3::OpenFlowSwitchNetDevice::OutputPacket(), ns3::OpenFlowSwitchNetDevice::ReceivePortMod(), and ns3::OpenFlowSwitchNetDevice::UpdatePortStatus().
unsigned long long int ns3::ofi::Port::mpls_ttl0_dropped |
Counter of packets dropped due to MPLS TTL.
Definition at line 129 of file openflow-interface.h.
Referenced by ns3::ofi::Stats::PortStatsDump().
NetDevice pointer.
Definition at line 123 of file openflow-interface.h.
Referenced by ns3::OpenFlowSwitchNetDevice::AddSwitchPort(), ns3::OpenFlowSwitchNetDevice::FillPortDesc(), ns3::OpenFlowSwitchNetDevice::GetSwitchPortIndex(), ns3::OpenFlowSwitchNetDevice::OutputPacket(), ns3::ofi::Stats::PortStatsDump(), ns3::OpenFlowSwitchNetDevice::ReceivePortMod(), and ns3::OpenFlowSwitchNetDevice::UpdatePortStatus().
unsigned long long int ns3::ofi::Port::rx_bytes |
Counter of Rx bytes.
Definition at line 126 of file openflow-interface.h.
Referenced by ns3::ofi::Stats::PortStatsDump().
unsigned long long int ns3::ofi::Port::rx_packets |
Counter of Rx packets.
Definition at line 124 of file openflow-interface.h.
Referenced by ns3::ofi::Stats::PortStatsDump().
uint32_t ns3::ofi::Port::state |
Some subset of OFPPS_* flags.
Definition at line 122 of file openflow-interface.h.
Referenced by ns3::OpenFlowSwitchNetDevice::FillPortDesc(), and ns3::OpenFlowSwitchNetDevice::UpdatePortStatus().
unsigned long long int ns3::ofi::Port::tx_bytes |
Counter of Tx bytes.
Definition at line 127 of file openflow-interface.h.
Referenced by ns3::OpenFlowSwitchNetDevice::OutputPacket(), and ns3::ofi::Stats::PortStatsDump().
unsigned long long int ns3::ofi::Port::tx_dropped |
Counter of Tx dropped packets.
Definition at line 128 of file openflow-interface.h.
Referenced by ns3::OpenFlowSwitchNetDevice::OutputPacket(), and ns3::ofi::Stats::PortStatsDump().
unsigned long long int ns3::ofi::Port::tx_packets |
Counter of Tx packets.
Definition at line 125 of file openflow-interface.h.
Referenced by ns3::OpenFlowSwitchNetDevice::OutputPacket(), and ns3::ofi::Stats::PortStatsDump().