[ovs-dev] [of1.1 rollup 03/20] packets: Define IPPROTO_SCTP if not provided by <netinet/in.h>.

Ben Pfaff blp at nicira.com
Tue Jun 12 00:32:07 PDT 2012


SUSv3 doesn't require IPPROTO_SCTP so some systems might not provide it.

IPPROTO_SCTP isn't used in the tree yet so this doesn't fix a real bug.

Signed-off-by: Ben Pfaff <blp at nicira.com>
---
 lib/packets.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lib/packets.h b/lib/packets.h
index 8e4117e..19ddd9a 100644
--- a/lib/packets.h
+++ b/lib/packets.h
@@ -337,6 +337,10 @@ void ip_format_masked(ovs_be32 ip, ovs_be32 mask, struct ds *);
 #define IP_IHL(ip_ihl_ver) ((ip_ihl_ver) & 15)
 #define IP_IHL_VER(ihl, ver) (((ver) << 4) | (ihl))
 
+#ifndef IPPROTO_SCTP
+#define IPPROTO_SCTP 132
+#endif
+
 /* TOS fields. */
 #define IP_ECN_MASK 0x03
 #define IP_DSCP_MASK 0xfc
-- 
1.7.2.5




More information about the dev mailing list