ofp-actions: Define IPPORT_FTP by ourselves
authorYAMAMOTO Takashi <yamamoto@midokura.com>
Wed, 14 Oct 2015 04:41:47 +0000 (04:41 +0000)
committerYAMAMOTO Takashi <yamamoto@midokura.com>
Thu, 26 Nov 2015 09:36:54 +0000 (18:36 +0900)
IPPORT_FTP is not always provided by system headers.  (eg. NetBSD, OS X)

This hides the enum on Linux but I don't think it causes a problem.

Signed-off-by: YAMAMOTO Takashi <yamamoto@midokura.com>
Acked-by: Ben Pfaff <blp@ovn.org>
lib/ofp-actions.h

index d180767..5e97c88 100644 (file)
@@ -500,6 +500,10 @@ struct {                                \
     uint8_t recirc_table;               \
 }
 
+#if !defined(IPPORT_FTP)
+#define        IPPORT_FTP  21
+#endif
+
 /* OFPACT_CT.
  *
  * Used for NXAST_CT. */