[ovs-dev] [PATCH 02/21] ofp-actions: Define IPPORT_FTP by ourselves

YAMAMOTO Takashi yamamoto at midokura.com
Mon Oct 19 04:28:53 UTC 2015


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 at midokura.com>
---
 lib/ofp-actions.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/ofp-actions.h b/lib/ofp-actions.h
index 773b617..f5a5b78 100644
--- a/lib/ofp-actions.h
+++ b/lib/ofp-actions.h
@@ -499,6 +499,10 @@ struct {                                \
     uint8_t recirc_table;               \
 }
 
+#if !defined(IPPORT_FTP)
+#define	IPPORT_FTP  21
+#endif
+
 /* OFPACT_CT.
  *
  * Used for NXAST_CT. */
-- 
2.3.8 (Apple Git-58)




More information about the dev mailing list