A Discrete-Event Network Simulator
API
Loading...
Searching...
No Matches
ns3::ofi::VPortAction Struct Reference

Class for handling virtual port table actions. More...

#include "openflow-interface.h"

Static Public Member Functions

static void Execute (ofp_vport_action_type type, ofpbuf *buffer, const sw_flow_key *key, const ofp_action_header *ah)
 Executes the action.
 
static bool IsValidType (ofp_vport_action_type type)
 
static uint16_t Validate (ofp_vport_action_type type, size_t len, const ofp_action_header *ah)
 Validates the action on whether its data is valid or not.
 

Detailed Description

Class for handling virtual port table actions.

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

Member Function Documentation

◆ Execute()

void ns3::ofi::VPortAction::Execute ( ofp_vport_action_type  type,
ofpbuf *  buffer,
const sw_flow_key *  key,
const ofp_action_header *  ah 
)
static

Executes the action.

Parameters
typeType of action to execute.
bufferBuffer of the Packet if it's needed for the action.
keyMatching key for the flow that is tied to this action.
ahAction's data header.

Definition at line 582 of file openflow-interface.cc.

Referenced by ns3::ofi::ExecuteVPortActions().

+ Here is the caller graph for this function:

◆ IsValidType()

bool ns3::ofi::VPortAction::IsValidType ( ofp_vport_action_type  type)
static
Parameters
typeType of virtual port table Action.
Returns
true if the provided type is a type of virtual port table action.

Definition at line 537 of file openflow-interface.cc.

Referenced by ns3::ofi::ValidateVPortActions().

+ Here is the caller graph for this function:

◆ Validate()

uint16_t ns3::ofi::VPortAction::Validate ( ofp_vport_action_type  type,
size_t  len,
const ofp_action_header *  ah 
)
static

Validates the action on whether its data is valid or not.

Parameters
typeType of action to validate.
lenLength of the action data.
ahAction's data header.
Returns
ACT_VALIDATION_OK if the action checks out, otherwise an error type.

Definition at line 552 of file openflow-interface.cc.

Referenced by ns3::ofi::ValidateVPortActions().

+ Here is the caller graph for this function:

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