[ovs-dev] [PATCH 2/2] sparse: add defintions to inlucde/sparse/netinet/in.h

Andy Zhou azhou at nicira.com
Thu Feb 27 03:15:38 UTC 2014


Fixed sparse undefined symbol warnings.

Signed-off-by: Andy Zhou <azhou at nicira.com>
---
 include/sparse/netinet/in.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/sparse/netinet/in.h b/include/sparse/netinet/in.h
index a220428..d51722e 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;
-- 
1.7.9.5




More information about the dev mailing list