ofp-print: Enable display of Open Flow 1.1 & 1.2 Table Stats Reply Messages
[openvswitch] / lib / odp-util.c
index 0574c9f359b80463a9db2d717932334bc879a12e..901dac3b4c80cba5649ff5a58af604632fde2127 100644 (file)
@@ -14,8 +14,8 @@
  * limitations under the License.
  */
 
-#include <arpa/inet.h>
 #include <config.h>
+#include <arpa/inet.h>
 #include "odp-util.h"
 #include <errno.h>
 #include <inttypes.h>
@@ -1976,7 +1976,7 @@ static void
 commit_set_port_action(const struct flow *flow, struct flow *base,
                        struct ofpbuf *odp_actions)
 {
-    if (!base->tp_src || !base->tp_dst) {
+    if (!base->tp_src && !base->tp_dst) {
         return;
     }