ROFL-pipeline  v0.6.0dev
Enumerations | Functions
of1x_async_events_hooks.h File Reference

OpenFlow v1.0, 1.2 and 1.3.2 switch(fwd module) -> asynchronous event notification and hooks) More...

#include "rofl.h"
#include "../of_switch.h"
#include "of1x_switch.h"
#include "pipeline/of1x_flow_entry.h"
#include "../../../pipeline/common/datapacket.h"

Go to the source code of this file.

Enumerations

enum  of1x_packet_in_reason { OF1X_PKT_IN_NO_MATCH = 0, OF1X_PKT_IN_ACTION = 1, OF1X_PKT_IN_INVALID_TTL = 2 }
 Packet-in reason (of12p_packet_in_reason enum) More...
 

Functions

ROFL_BEGIN_DECLS rofl_result_t platform_post_init_of1x_switch (of1x_switch_t *sw)
 Allows the user of the library to pre-configure the switch, as well as perform other platform related actions on switch creation according to platform capabilities. More...
 
rofl_result_t platform_pre_destroy_of1x_switch (of1x_switch_t *sw)
 Allows the user of the library to perform other platform related actions when a switch is about the be destroyed. More...
 
void platform_of1x_packet_in (const of1x_switch_t *sw, uint8_t table_id, datapacket_t *pkt, uint16_t send_len, of_packet_in_reason_t reason)
 Packet in event notification. More...
 
void platform_of1x_notify_flow_removed (const of1x_switch_t *sw, of1x_flow_remove_reason_t reason, of1x_flow_entry_t *removed_flow_entry)
 Flow removed event notification. More...
 
void plaftorm_of1x_add_entry_hook (of1x_flow_entry_t *new_entry)
 It can be used by hardware or other software (non rofl-pipeline) pipelines, to install the new entry. More...
 
void platform_of1x_modify_entry_hook (of1x_flow_entry_t *old_entry, of1x_flow_entry_t *mod, int reset_count)
 It can be used by hardware or other software (non rofl-pipeline) pipelines, to modify an entry (single entry). More...
 
void platform_of1x_remove_entry_hook (of1x_flow_entry_t *entry)
 It can be used by hardware or other software (non rofl-pipeline) pipelines, to remove an entry (single entry). More...
 
void platform_of1x_update_stats_hook (of1x_flow_entry_t *entry)
 It can be used by hardware or other software (non rofl-pipeline) pipelines, to update the stats of an entry when a request for stats is done. More...
 

Detailed Description

OpenFlow v1.0, 1.2 and 1.3.2 switch(fwd module) -> asynchronous event notification and hooks)

Author
Marc Sune<marc.sune (at) bisdn.de>, Tobias Jungel<tobias.jungel (at) bisdn.de>

This file contains event notifications, and other related hooks that the library expects to be implemented by the library user, in order to be called appropiately from the pipeline library.

Definition in file of1x_async_events_hooks.h.