5 #ifndef __OF1X_SWITCH_H__
6 #define __OF1X_SWITCH_H__
11 #include "../of_switch.h"
22 #define OF1XP_NO_BUFFER 0xffffffff
35 char name[LOGICAL_SWITCH_MAX_LEN_NAME];
36 unsigned int max_ports;
37 unsigned int num_of_ports;
43 of_switch_platform_state_t* platform_state;
50 platform_mutex_t* mutex;
73 of1x_switch_t*
of1x_init_switch(
const char* name, of_version_t version, uint64_t dpid,
unsigned int num_of_tables,
enum of1x_matching_algorithm_available* ma_list);
76 rofl_result_t __of1x_reconfigure_switch(
of1x_switch_t* sw, of_version_t version);
83 rofl_result_t __of1x_detach_port_from_switch_by_port_num(
of1x_switch_t* sw,
unsigned int port_num);
85 rofl_result_t __of1x_detach_all_ports_from_switch(
of1x_switch_t* sw);
OpenFlow v1.0, 1.2 and 1.3.2 pipeline abstraction.
OpenFlow-enabled v1.0, 1.2 and 1.3.2 switch abstraction.
struct of1x_switch of1x_switch_t
OpenFlow-enabled v1.0, 1.2 and 1.3.2 switch abstraction.
of1x_switch_t of1x_switch_snapshot_t
Switch snapshot.
ROFL_BEGIN_DECLS of1x_switch_t * of1x_init_switch(const char *name, of_version_t version, uint64_t dpid, unsigned int num_of_tables, enum of1x_matching_algorithm_available *ma_list)
Creates an OpenFlow v1.0, 1.2 and 1.3.2 forwarding instance.
void of1x_dump_switch(of1x_switch_t *sw, bool nbo)
Dumps the OpenFlow v1.0, 1.2 and 1.3.2 forwarding instance, for debugging purposes.
OpenFlow v1.0, 1.2 and 1.3.2 pipeline abstraction data structure.
void of1x_full_dump_switch(of1x_switch_t *sw, bool nbo)
Dumps the OpenFlow v1.0, 1.2 and 1.3.2 forwarding instance, for debugging purposes.