From: Ben Pfaff Date: Tue, 22 May 2012 04:34:46 +0000 (-0700) Subject: packets: Define IPPROTO_SCTP if not provided by . X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c99379ed477e95e3f2fc1ff22149074ba39efc5;p=openvswitch packets: Define IPPROTO_SCTP if not provided by . 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. Reviewed-by: Simon Horman Signed-off-by: Ben Pfaff --- diff --git a/lib/packets.h b/lib/packets.h index 8e4117e8..19ddd9ac 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