diff options
Diffstat (limited to 'include/net/inet_sock.h')
-rw-r--r-- | include/net/inet_sock.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/net/inet_sock.h b/include/net/inet_sock.h index 360b110b3e36..605ca421d5ab 100644 --- a/include/net/inet_sock.h +++ b/include/net/inet_sock.h | |||
@@ -16,7 +16,7 @@ | |||
16 | #ifndef _INET_SOCK_H | 16 | #ifndef _INET_SOCK_H |
17 | #define _INET_SOCK_H | 17 | #define _INET_SOCK_H |
18 | 18 | ||
19 | 19 | #include <linux/bitops.h> | |
20 | #include <linux/kmemcheck.h> | 20 | #include <linux/kmemcheck.h> |
21 | #include <linux/string.h> | 21 | #include <linux/string.h> |
22 | #include <linux/types.h> | 22 | #include <linux/types.h> |
@@ -195,6 +195,15 @@ struct inet_sock { | |||
195 | #define IPCORK_OPT 1 /* ip-options has been held in ipcork.opt */ | 195 | #define IPCORK_OPT 1 /* ip-options has been held in ipcork.opt */ |
196 | #define IPCORK_ALLFRAG 2 /* always fragment (for ipv6 for now) */ | 196 | #define IPCORK_ALLFRAG 2 /* always fragment (for ipv6 for now) */ |
197 | 197 | ||
198 | /* cmsg flags for inet */ | ||
199 | #define IP_CMSG_PKTINFO BIT(0) | ||
200 | #define IP_CMSG_TTL BIT(1) | ||
201 | #define IP_CMSG_TOS BIT(2) | ||
202 | #define IP_CMSG_RECVOPTS BIT(3) | ||
203 | #define IP_CMSG_RETOPTS BIT(4) | ||
204 | #define IP_CMSG_PASSSEC BIT(5) | ||
205 | #define IP_CMSG_ORIGDSTADDR BIT(6) | ||
206 | |||
198 | static inline struct inet_sock *inet_sk(const struct sock *sk) | 207 | static inline struct inet_sock *inet_sk(const struct sock *sk) |
199 | { | 208 | { |
200 | return (struct inet_sock *)sk; | 209 | return (struct inet_sock *)sk; |