summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/sparse/netinet/in.h40
1 files changed, 20 insertions, 20 deletions
diff --git a/include/sparse/netinet/in.h b/include/sparse/netinet/in.h
index 78e598175..8a5b887bd 100644
--- a/include/sparse/netinet/in.h
+++ b/include/sparse/netinet/in.h
@@ -18,8 +18,8 @@
#error "Use this header only with sparse. It is not a correct implementation."
#endif
-#ifndef __NETINET_IN_SPARSE
-#define __NETINET_IN_SPARSE 1
+#ifndef _NETINET_IN_H
+#define _NETINET_IN_H 1
#include "openvswitch/types.h"
#include <inttypes.h>
@@ -77,25 +77,25 @@ struct sockaddr_in6 {
#define IPPORT_FTP 21
/* All the IP options documented in Linux ip(7). */
-#define IP_ADD_MEMBERSHIP 0
-#define IP_DROP_MEMBERSHIP 1
-#define IP_HDRINCL 2
-#define IP_MTU 3
-#define IP_MTU_DISCOVER 4
-#define IP_MULTICAST_IF 5
-#define IP_MULTICAST_LOOP 6
-#define IP_MULTICAST_TTL 7
-#define IP_NODEFRAG 8
-#define IP_OPTIONS 9
-#define IP_PKTINFO 10
+#define IP_ADD_MEMBERSHIP 35
+#define IP_DROP_MEMBERSHIP 36
+#define IP_HDRINCL 3
+#define IP_MTU 14
+#define IP_MTU_DISCOVER 10
+#define IP_MULTICAST_IF 32
+#define IP_MULTICAST_LOOP 34
+#define IP_MULTICAST_TTL 33
+#define IP_NODEFRAG 22
+#define IP_OPTIONS 4
+#define IP_PKTINFO 8
#define IP_RECVERR 11
-#define IP_RECVOPTS 12
+#define IP_RECVOPTS 6
#define IP_RECVTOS 13
-#define IP_RECVTTL 14
-#define IP_RETOPTS 15
-#define IP_ROUTER_ALERT 16
-#define IP_TOS 17
-#define IP_TTL 18
+#define IP_RECVTTL 12
+#define IP_RETOPTS 7
+#define IP_ROUTER_ALERT 5
+#define IP_TOS 1
+#define IP_TTL 2
#define INADDR_ANY 0x00000000
#define INADDR_BROADCAST 0xffffffff
@@ -146,4 +146,4 @@ int inet_aton (const char *, struct in_addr *);
const char *inet_ntop(int, const void *, char *, socklen_t);
int inet_pton(int, const char *, void *);
-#endif /* <netinet/in.h> sparse */
+#endif /* <netinet/in.h> */