diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-01-17 16:15:55 -0500 |
commit | 8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch) | |
tree | a8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/linux/errqueue.h | |
parent | 406089d01562f1e2bf9f089fd7637009ebaad589 (diff) |
Patched in Tegra support.
Diffstat (limited to 'include/linux/errqueue.h')
-rw-r--r-- | include/linux/errqueue.h | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/include/linux/errqueue.h b/include/linux/errqueue.h index 9ca23fcfb5d..034072cea85 100644 --- a/include/linux/errqueue.h +++ b/include/linux/errqueue.h | |||
@@ -1,19 +1,39 @@ | |||
1 | #ifndef _LINUX_ERRQUEUE_H | 1 | #ifndef _LINUX_ERRQUEUE_H |
2 | #define _LINUX_ERRQUEUE_H 1 | 2 | #define _LINUX_ERRQUEUE_H 1 |
3 | 3 | ||
4 | #include <linux/types.h> | ||
5 | |||
6 | struct sock_extended_err { | ||
7 | __u32 ee_errno; | ||
8 | __u8 ee_origin; | ||
9 | __u8 ee_type; | ||
10 | __u8 ee_code; | ||
11 | __u8 ee_pad; | ||
12 | __u32 ee_info; | ||
13 | __u32 ee_data; | ||
14 | }; | ||
15 | |||
16 | #define SO_EE_ORIGIN_NONE 0 | ||
17 | #define SO_EE_ORIGIN_LOCAL 1 | ||
18 | #define SO_EE_ORIGIN_ICMP 2 | ||
19 | #define SO_EE_ORIGIN_ICMP6 3 | ||
20 | #define SO_EE_ORIGIN_TIMESTAMPING 4 | ||
21 | |||
22 | #define SO_EE_OFFENDER(ee) ((struct sockaddr*)((ee)+1)) | ||
23 | |||
24 | #ifdef __KERNEL__ | ||
4 | 25 | ||
5 | #include <net/ip.h> | 26 | #include <net/ip.h> |
6 | #if IS_ENABLED(CONFIG_IPV6) | 27 | #if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) |
7 | #include <linux/ipv6.h> | 28 | #include <linux/ipv6.h> |
8 | #endif | 29 | #endif |
9 | #include <uapi/linux/errqueue.h> | ||
10 | 30 | ||
11 | #define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb)) | 31 | #define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb)) |
12 | 32 | ||
13 | struct sock_exterr_skb { | 33 | struct sock_exterr_skb { |
14 | union { | 34 | union { |
15 | struct inet_skb_parm h4; | 35 | struct inet_skb_parm h4; |
16 | #if IS_ENABLED(CONFIG_IPV6) | 36 | #if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) |
17 | struct inet6_skb_parm h6; | 37 | struct inet6_skb_parm h6; |
18 | #endif | 38 | #endif |
19 | } header; | 39 | } header; |
@@ -23,3 +43,5 @@ struct sock_exterr_skb { | |||
23 | }; | 43 | }; |
24 | 44 | ||
25 | #endif | 45 | #endif |
46 | |||
47 | #endif | ||