ROFL-hal  v0.6.0dev
Functions
Control and Management Module(CMM) OpenFlow notifications interface

The HAL of1x cmm interface is the interface that the driver can consume to produce OpenFlow related notifications to the CMM. More...

Functions

HAL_BEGIN_DECLS hal_result_t hal_cmm_process_of1x_packet_in (uint64_t dpid, uint8_t table_id, uint8_t reason, uint32_t in_port, uint32_t buffer_id, uint64_t cookie, uint8_t *pkt_buffer, uint32_t buf_len, uint16_t total_len, packet_matches_t *matches)
 Instructs the CMM to process a PACKET_IN event comming from the DP. More...
 
hal_result_t hal_cmm_process_of1x_flow_removed (uint64_t dpid, uint8_t reason, of1x_flow_entry_t *removed_flow_entry)
 Instructs the CMM to process a FLOW_REMOVED event comming from the DP. More...
 

Detailed Description

The HAL of1x cmm interface is the interface that the driver can consume to produce OpenFlow related notifications to the CMM.

Function Documentation

hal_result_t hal_cmm_process_of1x_flow_removed ( uint64_t  dpid,
uint8_t  reason,
of1x_flow_entry_t *  removed_flow_entry 
)

Instructs the CMM to process a FLOW_REMOVED event comming from the DP.

Parameters
dpidOpenFlow switch DPID
removed_flow_entryThe entry shall ONLY be used for reading, and shall NEVER be removed (of1x_remove_flow_entry). This is done by the fwd_module itself.
HAL_BEGIN_DECLS hal_result_t hal_cmm_process_of1x_packet_in ( uint64_t  dpid,
uint8_t  table_id,
uint8_t  reason,
uint32_t  in_port,
uint32_t  buffer_id,
uint64_t  cookie,
uint8_t *  pkt_buffer,
uint32_t  buf_len,
uint16_t  total_len,
packet_matches_t *  matches 
)

Instructs the CMM to process a PACKET_IN event comming from the DP.

Parameters
dpidOpenFlow switch DPID
table_idID of the table that produced PACKET_IN
reasonone of the OFPR_ ... constants
in_portIncomming packet port
buffer_idBuffer ID. Must be different from 0 or OF1XP_NO_BUFFER
pkt_bufferBuffer containing the packet. Shall only be used for reading.
buf_lenBuffer length (may be shorter than the packet stored in buffer)
total_lentotal length of buffer
matchesPacket matches