Message ID | 1445228952-22445-2-git-send-email-yamamoto@midokura.com |
---|---|
State | Awaiting Upstream |
Headers | show |
On Mon, Oct 19, 2015 at 01:28:53PM +0900, YAMAMOTO Takashi wrote: > 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> I don't think ofp-actions.h is an ideal place for this, but it seems good enough for now. Acked-by: Ben Pfaff <blp@ovn.org>
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. */
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> --- lib/ofp-actions.h | 4 ++++ 1 file changed, 4 insertions(+)