A Discrete-Event Network Simulator
API
ofswitch13-interface.cc File Reference
+ Include dependency graph for ofswitch13-interface.cc:

Go to the source code of this file.

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Functions

struct ofpbuf * ns3::BufferFromPacket (Ptr< const Packet > packet, size_t bodyRoom, size_t headRoom=0)
 Create an internal BOFUSS buffer from ns3::Packet. More...
 
void dp_actions_output_port (struct packet *pkt, uint32_t out_port, uint32_t out_queue, uint16_t max_len, uint64_t cookie)
 
void dpctl_send_and_print (struct vconn *vconn, struct ofl_msg_header *msg)
 
void dpctl_transact_and_print (struct vconn *vconn, struct ofl_msg_header *req, struct ofl_msg_header **repl)
 
void ns3::EnableBofussLog (bool printToFile=false, std::string prefix="", bool explicitFilename=false, std::string customLevels="")
 Enable the logging system of the BOFUSS library. More...
 
Ptr< Packetns3::PacketFromBuffer (struct ofpbuf *buffer)
 Create a new ns3::Packet from internal BOFUSS buffer. More...
 
Ptr< Packetns3::PacketFromMsg (struct ofl_msg_header *msg, uint32_t xid=0)
 Create a new ns3::Packet from internal OFLib message. More...
 
int send_openflow_buffer_to_remote (struct ofpbuf *buffer, struct remote *remote)
 
void send_packet_to_controller (struct pipeline *pl, struct packet *pkt, uint8_t table_id, uint8_t reason)
 Overriding BOFUSS weak functions using static member functions. More...
 
long long int time_msec (void)
 Overriding BOFUSS time_msec weak function from timeval.c. More...
 
time_t time_now (void)
 Overriding BOFUSS time_now weak function from timeval.c. More...
 

Function Documentation

◆ dp_actions_output_port()

void dp_actions_output_port ( struct packet *  pkt,
uint32_t  out_port,
uint32_t  out_queue,
uint16_t  max_len,
uint64_t  cookie 
)

Definition at line 151 of file ofswitch13-interface.cc.

References ns3::OFSwitch13Device::DpActionsOutputPort().

+ Here is the call graph for this function:

◆ dpctl_send_and_print()

void dpctl_send_and_print ( struct vconn *  vconn,
struct ofl_msg_header *  msg 
)

Definition at line 165 of file ofswitch13-interface.cc.

References ns3::OFSwitch13Controller::DpctlSendAndPrint().

+ Here is the call graph for this function:

◆ dpctl_transact_and_print()

void dpctl_transact_and_print ( struct vconn *  vconn,
struct ofl_msg_header *  req,
struct ofl_msg_header **  repl 
)

Definition at line 171 of file ofswitch13-interface.cc.

References ns3::OFSwitch13Controller::DpctlSendAndPrint().

+ Here is the call graph for this function:

◆ send_openflow_buffer_to_remote()

int send_openflow_buffer_to_remote ( struct ofpbuf *  buffer,
struct remote *  remote 
)

Definition at line 145 of file ofswitch13-interface.cc.

References ns3::OFSwitch13Device::SendOpenflowBufferToRemote().

+ Here is the call graph for this function:

◆ send_packet_to_controller()

void send_packet_to_controller ( struct pipeline *  pl,
struct packet *  pkt,
uint8_t  table_id,
uint8_t  reason 
)

Overriding BOFUSS weak functions using static member functions.

Definition at line 136 of file ofswitch13-interface.cc.

References ns3::OFSwitch13Device::SendPacketToController().

+ Here is the call graph for this function:

◆ time_msec()

long long int time_msec ( void  )

Overriding BOFUSS time_msec weak function from timeval.c.

Returns
The current simulation time, in milliseconds.

Definition at line 129 of file ofswitch13-interface.cc.

References ns3::Time::GetMilliSeconds(), and ns3::Simulator::Now().

Referenced by ns3::OFSwitch13Queue::AddQueue(), and ns3::OFSwitch13Port::NotifyConstructionCompleted().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ time_now()

time_t time_now ( void  )

Overriding BOFUSS time_now weak function from timeval.c.

Returns
The current simulation time, in seconds.

Definition at line 119 of file ofswitch13-interface.cc.

References ns3::Simulator::Now(), ns3::Time::S, and ns3::Time::ToInteger().

Referenced by ns3::OFSwitch13Device::DatapathNew(), ns3::OFSwitch13Device::DatapathTimeout(), and SwitchFlowTableTestCase::DoRun().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: