Skip to content
Permalink
Browse files

v0.13.3

  • Loading branch information...
akoepsel committed Oct 23, 2019
1 parent 3fb4796 commit 0b65580465e9b55f0686ae2d9b14bc3d65432c38
Showing with 1,462 additions and 1,279 deletions.
  1. +6 −0 CHANGES
  2. +1 −1 VERSION
  3. +5 −3 examples/ethswctld/cetherswitch.cc
  4. +6 −6 examples/ethswctld/cunixenv.cc
  5. +8 −8 examples/ethswctld/cunixenv.h
  6. +2 −1 src/rofl/common/caddrinfos.cc
  7. +7 −3 src/rofl/common/cbuffer.hpp
  8. +1 −1 src/rofl/common/cctlid.h
  9. +1 −1 src/rofl/common/cdptid.h
  10. +1 −1 src/rofl/common/cmemory.h
  11. +1 −1 src/rofl/common/crandom.h
  12. +5 −2 src/rofl/common/crofbase.cc
  13. +1 −1 src/rofl/common/crofbase.h
  14. +2 −1 src/rofl/common/crofchan.h
  15. +84 −56 src/rofl/common/crofconn.cc
  16. +25 −11 src/rofl/common/crofctl.cc
  17. +1 −1 src/rofl/common/crofctl.h
  18. +29 −13 src/rofl/common/crofdpt.cc
  19. +1 −1 src/rofl/common/crofdpt.h
  20. +27 −16 src/rofl/common/crofsock.cc
  21. +3 −1 src/rofl/common/crofsock.h
  22. +2 −1 src/rofl/common/csegment.cpp
  23. +6 −2 src/rofl/common/csegment.hpp
  24. +6 −3 src/rofl/common/cthread.cpp
  25. +1 −1 src/rofl/common/ctimespec.hpp
  26. +11 −5 src/rofl/common/openflow/cofaction.cc
  27. +17 −6 src/rofl/common/openflow/cofaction.h
  28. +6 −2 src/rofl/common/openflow/cofactions.cc
  29. +2 −2 src/rofl/common/openflow/cofbucket.h
  30. +2 −2 src/rofl/common/openflow/cofbuckets.h
  31. +4 −2 src/rofl/common/openflow/cofdescstats.cc
  32. +4 −3 src/rofl/common/openflow/cofflowstats.h
  33. +2 −2 src/rofl/common/openflow/cofflowstatsarray.h
  34. +2 −2 src/rofl/common/openflow/cofgroupdescstatsarray.h
  35. +2 −2 src/rofl/common/openflow/cofgroupfeaturesstats.h
  36. +2 −1 src/rofl/common/openflow/cofgroupstats.h
  37. +2 −2 src/rofl/common/openflow/cofgroupstatsarray.h
  38. +4 −2 src/rofl/common/openflow/cofhelloelems.cc
  39. +3 −1 src/rofl/common/openflow/cofhelloelems.h
  40. +2 −2 src/rofl/common/openflow/cofmeterband.h
  41. +2 −2 src/rofl/common/openflow/cofmeterconfigarray.h
  42. +2 −2 src/rofl/common/openflow/cofmeterstatsarray.h
  43. +2 −1 src/rofl/common/openflow/cofport.cc
  44. +3 −1 src/rofl/common/openflow/cofportdescprops.h
  45. +4 −3 src/rofl/common/openflow/cofportstats.h
  46. +2 −2 src/rofl/common/openflow/cofportstatsarray.h
  47. +3 −1 src/rofl/common/openflow/cofqueueprops.h
  48. +4 −3 src/rofl/common/openflow/cofqueuestats.h
  49. +2 −2 src/rofl/common/openflow/cofqueuestatsarray.h
  50. +14 −6 src/rofl/common/openflow/coftablefeatureprop.h
  51. +3 −1 src/rofl/common/openflow/coftablefeatureprops.cc
  52. +3 −1 src/rofl/common/openflow/coftablemodprops.h
  53. +5 −3 src/rofl/common/openflow/coftablestats.h
  54. +2 −2 src/rofl/common/openflow/coftablestatsarray.h
  55. +3 −3 src/rofl/common/openflow/coxmatch.cc
  56. +5 −2 src/rofl/common/openflow/coxmatches.cc
  57. +42 −26 src/rofl/common/openflow/coxmatches.h
  58. +183 −159 src/rofl/common/openflow/experimental/actions/ext320_actions.h
  59. +17 −13 src/rofl/common/openflow/experimental/matches/capwap_matches.h
  60. +16 −12 src/rofl/common/openflow/experimental/matches/gre_matches.h
  61. +11 −8 src/rofl/common/openflow/experimental/matches/gtp_matches.h
  62. +39 −36 src/rofl/common/openflow/experimental/matches/ofdpa_matches.h
  63. +12 −9 src/rofl/common/openflow/experimental/matches/pppoe_matches.h
  64. +35 −27 src/rofl/common/openflow/experimental/matches/wlan_matches.h
  65. +14 −10 src/rofl/common/openflow/extensions/matches/ext244_matches.h
  66. +3 −1 src/rofl/common/openflow/messages/cofmsg.h
  67. +6 −2 src/rofl/common/openflow/messages/cofmsg_barrier.h
  68. +3 −1 src/rofl/common/openflow/messages/cofmsg_desc_stats.cc
  69. +6 −2 src/rofl/common/openflow/messages/cofmsg_experimenter_stats.cc
  70. +3 −1 src/rofl/common/openflow/messages/cofmsg_features.cc
  71. +3 −1 src/rofl/common/openflow/messages/cofmsg_features.h
  72. +3 −1 src/rofl/common/openflow/messages/cofmsg_flow_mod.cc
  73. +3 −1 src/rofl/common/openflow/messages/cofmsg_flow_removed.cc
  74. +6 −2 src/rofl/common/openflow/messages/cofmsg_flow_removed.h
  75. +1 −1 src/rofl/common/openflow/messages/cofmsg_flow_stats.h
  76. +3 −1 src/rofl/common/openflow/messages/cofmsg_group_desc_stats.cc
  77. +3 −1 src/rofl/common/openflow/messages/cofmsg_group_features_stats.cc
  78. +3 −1 src/rofl/common/openflow/messages/cofmsg_meter_features_stats.cc
  79. +3 −1 src/rofl/common/openflow/messages/cofmsg_port_status.h
  80. +6 −2 src/rofl/common/openflow/messages/cofmsg_stats.cc
  81. +2 −2 src/rofl/common/openflow/openflow.h
  82. +17 −18 src/rofl/common/openflow/openflow10.h
  83. +85 −98 src/rofl/common/openflow/openflow12.h
  84. +182 −204 src/rofl/common/openflow/openflow13.h
  85. +106 −121 src/rofl/common/openflow/openflow14.h
  86. +179 −202 src/rofl/common/openflow/openflow_common.h
  87. +1 −1 src/rofl/common/openflow/openflow_rofl_exceptions.h
  88. +14 −14 src/rofl_common.h
  89. +4 −2 test/rofl/common/crofchan/crofchantest.cpp
  90. +5 −2 test/rofl/common/crofconn/crofconntest.cpp
  91. +6 −3 test/rofl/common/crofsock/crofsocktest.cpp
  92. +2 −1 test/rofl/common/cthread/cthread_test.cc
  93. +32 −40 test/rofl/common/openflow/cofaction/cofaction_test.cc
  94. +12 −10 test/rofl/common/openflow/coxmatch/coxmatchtest.cpp
  95. +1 −1 test/rofl/common/openflow/coxmatches/coxmatchestest.cpp
  96. +1 −1 test/rofl/common/openflow/messages/cofmsgasyncconfig/cofmsgasyncconfigtest.hpp
  97. +1 −1 test/rofl/common/openflow/messages/cofmsgexperimenter/cofmsgexperimentertest.hpp
  98. +1 −1 test/rofl/common/openflow/messages/cofmsgexperimenterstats/cofmsgexperimenterstatstest.hpp
  99. +1 −1 test/rofl/common/openflow/messages/cofmsgflowremoved/cofmsgflowremovedtest.hpp
  100. +1 −1 test/rofl/common/openflow/messages/cofmsggroupdescstats/cofmsggroupdescstatstest.hpp
  101. +1 −1 test/rofl/common/openflow/messages/cofmsggroupfeaturesstats/cofmsggroupfeaturesstatstest.hpp
  102. +1 −1 test/rofl/common/openflow/messages/cofmsgmeterconfigstats/cofmsgmeterconfigstatstest.hpp
  103. +1 −1 test/rofl/common/openflow/messages/cofmsgmeterfeaturesstats/cofmsgmeterfeaturesstatstest.hpp
  104. +22 −22 test/rofl/common/openflow/messages/cofmsgpacketout/cofmsgpacketouttest.cpp
  105. +1 −1 test/rofl/common/openflow/messages/cofmsgportdescstats/cofmsgportdescstatstest.hpp
  106. +1 −1 test/rofl/common/openflow/messages/cofmsgportstatus/cofmsgportstatustest.hpp
  107. +1 −1 test/rofl/common/openflow/messages/cofmsgqueueconfig/cofmsgqueueconfigtest.hpp
  108. +1 −1 test/rofl/common/openflow/messages/cofmsgtablefeaturesstats/cofmsgtablefeaturesstatstest.hpp
@@ -9,6 +9,12 @@ Legend:
Change log
==========

v0.13.3
[+] openflow extension EXT-244
[+] openflow extension EXT-320

v0.13.2

v0.13.1
[+] added experimental matches from OFDPA-2:
VRF, OVID, ALLOW_VLAN_TRANSLATION, ACTSET_OUTPUT
@@ -1 +1 @@
0.13.2
0.13.3
@@ -20,8 +20,8 @@ int cetherswitch::run(int argc, char **argv) {
signal(SIGINT, signal_handler);

/*
* Parse parameters
*/
* Parse parameters
*/
rofl::cunixenv env_parser(argc, argv);

/* update defaults */
@@ -179,7 +179,9 @@ void cetherswitch::handle_dpt_open(rofl::crofdpt &dpt) {
.add_action_output(rofl::cindex(0))
.set_port_no(rofl::openflow13::OFPP_CONTROLLER);
} break;
default: { throw rofl::eBadVersion(); };
default: {
throw rofl::eBadVersion();
};
}

dpt.send_flow_mod_message(rofl::cauxid(0), flow_table_entry);
@@ -38,10 +38,10 @@ std::string coption::parse_argument(char *optarg) {
}

/*
*
* cunixenv
*
*/
*
* cunixenv
*
*/

/* Constructor */
cunixenv::cunixenv(int argc, char **argv) {
@@ -52,8 +52,8 @@ cunixenv::cunixenv(int argc, char **argv) {
}

/*
* Default arguments are debug and help ONLY
*/
* Default arguments are debug and help ONLY
*/

// Prepare debug debug level
// ss << rofl::logging::emerg_;
@@ -24,9 +24,9 @@
namespace rofl {

/*
* Helper class to manipulate easily arguments in C++ programs. Argmuents are
* ALWAYS strings
*/
* Helper class to manipulate easily arguments in C++ programs. Argmuents are
* ALWAYS strings
*/

#define NO_ARGUMENT no_argument
#define REQUIRED_ARGUMENT required_argument
@@ -61,8 +61,8 @@ class coption {
/* Forward declaration */

/*
* Unix parser class
*/
* Unix parser class
*/
class cunixenv {
public:
/**
@@ -76,8 +76,8 @@ class cunixenv {
~cunixenv();

/*
* Add argument to current list of arguments to parse
*/
* Add argument to current list of arguments to parse
*/
void add_option(const coption &arg);

/**
@@ -110,6 +110,6 @@ class cunixenv {
std::vector<std::string> cargs;
};

}; // end of namespace
}; // namespace rofl

#endif
@@ -39,7 +39,8 @@ void caddrinfos::resolve() {

} break;
case EAI_SYSTEM:
default: {};
default: {
};
}
throw eSysCall("getaddrinfo() " + std::string(gai_strerror(rc)));
}
@@ -132,7 +132,9 @@ class cbuffer : public cmemory {
}
wbytes += offset;
} break;
default: { throw eBufInval("invalid SEEK operation"); };
default: {
throw eBufInval("invalid SEEK operation");
};
}
return *this;
};
@@ -158,7 +160,9 @@ class cbuffer : public cmemory {
rbytes = wbytes = 0; // FIXME: hmm ...
}
} break;
default: { throw eBufInval("invalid SEEK operation"); };
default: {
throw eBufInval("invalid SEEK operation");
};
}
return *this;
};
@@ -204,6 +208,6 @@ class cbuffer : public cmemory {
unsigned int rbytes;
};

}; // end of namespace
}; // namespace rofl

#endif
@@ -96,6 +96,6 @@ class cctlid {
};
};

}; // end of namespace
}; // namespace rofl

#endif /* CCTLID_H_ */
@@ -16,6 +16,6 @@ namespace rofl {
*/
typedef unsigned int cdptid;

}; // end of namespace
}; // namespace rofl

#endif /* CDPTID_H_ */
@@ -318,6 +318,6 @@ class cmemory {
};
};

}; // end of namespace
}; // namespace rofl

#endif
@@ -85,6 +85,6 @@ class crandom {
unsigned int seedp;
};

}; // end of namespace
}; // namespace rofl

#endif
@@ -299,7 +299,8 @@ void crofbase::handle_timeout(cthread &thread, uint32_t timer_id) {
}
rofdpts_deletion.clear();
} break;
default: {};
default: {
};
}
}

@@ -452,7 +453,9 @@ void crofbase::handle_established(crofconn &conn, uint8_t ofp_version) {
handle_conn_established(set_ctl(ctlid), conn.get_auxid());

} break;
default: { delete &conn; };
default: {
delete &conn;
};
}
}

@@ -2364,6 +2364,6 @@ class crofbase : public virtual rofl::cthread_env,
std::string ciphers;
};

}; // end of namespace
}; // namespace rofl

#endif
@@ -650,7 +650,8 @@ class crofchan : public cthread_env, public rofl::crofconn_env {
case TIMER_ID_ROFCONN_DESTROY: {
__drop_conns_deletion();
} break;
default: {};
default: {
};
}
};

0 comments on commit 0b65580

Please sign in to comment.
You can’t perform that action at this time.