2 #include "../common/datapacket.h"
9 #include "openflow1x/pipeline/matching_algorithms/matching_algorithms.h"
12 const char* of_version_str[__OF_VERSION_MAX] = {
"INVALID",
"1.0",
"1.1",
"1.2",
"1.3"};
29 if(version == OF_VERSION_10 || version == OF_VERSION_12 || version == OF_VERSION_13){
30 return __of1x_reconfigure_switch((
of1x_switch_t*)sw, version);
46 __of1x_process_pipeline_tables_timeout_expirations(&((
of1x_switch_t*)sw)->pipeline);
60 return __of1x_attach_port_to_switch_at_port_num((
of1x_switch_t*)sw, port_num, port);
71 return __of1x_attach_port_to_switch((
of1x_switch_t*)sw,port, port_num);
77 rofl_result_t __of_detach_port_from_switch_by_port_num(
of_switch_t* sw,
unsigned int port_num){
82 return __of1x_detach_port_from_switch_by_port_num((
of1x_switch_t*)sw, port_num);
93 return __of1x_detach_port_from_switch((
of1x_switch_t*)sw, port);
99 rofl_result_t __of_detach_all_ports_from_switch(
of_switch_t* sw){
104 return __of1x_detach_all_ports_from_switch((
of1x_switch_t*)sw);
112 switch (of_version) {
117 static const char * names[] = OF1X_MATCHING_ALGORITHM_NAMES;
119 *count = of1x_matching_algorithm_count;
140 switch (snapshot->of_ver){
OpenFlow-enabled switch abstraction (version-indepedent part).
OpenFlow v1.0, 1.2 and 1.3.2 pipeline abstraction.
OpenFlow-enabled v1.0, 1.2 and 1.3.2 switch abstraction.
rofl_result_t of_reconfigure_switch(of_switch_t *sw, of_version_t version)
Reconfigures the pipeline to behave as an OF specific version pipeline.
void of_switch_destroy_snapshot(of_switch_snapshot_t *snapshot)
Destroy a previously generated snapshot.
void of_process_pipeline_tables_timeout_expirations(const of_switch_t *sw)
Processes flow entry expirations in all the pipeline tables of the switch.
rofl_result_t of_get_switch_matching_algorithms(of_version_t of_version, const char *const **name_list, int *count)
Retrieves the list of available matching algorithms available for OF version of_version.
OpenFlow v1.0, 1.2 and 1.3.2 logical switch abstraction.
OpenFlow logical switch meta-abstraction.
rofl_result_t of_destroy_switch(const of_switch_t *sw)
Destroys an OpenFlow logical switch.