From: Andy Zhou <azhou@nicira.com>
Date: Thu, 27 Feb 2014 02:51:54 +0000 (-0800)
Subject: sparse: add defintions to include/sparse/netinet/in.h
X-Git-Tag: sliver-openvswitch-2.2.90-1~9^2~3
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=9159b85862a86fab20e308601602a5b2ab08c933;p=sliver-openvswitch.git

sparse: add defintions to include/sparse/netinet/in.h

Fixed sparse undefined symbol warnings.

Signed-off-by: Andy Zhou <azhou@nicira.com>
Acked-by: Ben Pfaff <blp@nicira.com>
---

diff --git a/include/sparse/netinet/in.h b/include/sparse/netinet/in.h
index a2204282d..d51722e95 100644
--- a/include/sparse/netinet/in.h
+++ b/include/sparse/netinet/in.h
@@ -58,6 +58,7 @@ struct sockaddr_in6 {
 };
 
 #define IPPROTO_IP 0
+#define IPPROTO_IPV6  41
 #define IPPROTO_HOPOPTS 0
 #define IPPROTO_ICMP 1
 #define IPPROTO_TCP 6
@@ -98,6 +99,8 @@ struct sockaddr_in6 {
 
 #define INET6_ADDRSTRLEN 46
 
+#define IPV6_TCLASS   67
+
 static inline ovs_be32 htonl(uint32_t x)
 {
     return (OVS_FORCE ovs_be32) x;