diff options
| author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2005-04-16 18:20:36 -0400 |
| commit | 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (patch) | |
| tree | 0bba044c4ce775e45a88a51686b5d9f90697ea9d /include/linux/errqueue.h | |
Linux-2.6.12-rc2v2.6.12-rc2
Initial git repository build. I'm not bothering with the full history,
even though we have it. We can create a separate "historical" git
archive of that later if we want to, and in the meantime it's about
3.2GB when imported into git - space that would just make the early
git days unnecessarily complicated, when we don't have a lot of good
infrastructure for it.
Let it rip!
Diffstat (limited to 'include/linux/errqueue.h')
| -rw-r--r-- | include/linux/errqueue.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/include/linux/errqueue.h b/include/linux/errqueue.h new file mode 100644 index 0000000000..174582fedb --- /dev/null +++ b/include/linux/errqueue.h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | #ifndef _LINUX_ERRQUEUE_H | ||
| 2 | #define _LINUX_ERRQUEUE_H 1 | ||
| 3 | |||
| 4 | struct sock_extended_err | ||
| 5 | { | ||
| 6 | __u32 ee_errno; | ||
| 7 | __u8 ee_origin; | ||
| 8 | __u8 ee_type; | ||
| 9 | __u8 ee_code; | ||
| 10 | __u8 ee_pad; | ||
| 11 | __u32 ee_info; | ||
| 12 | __u32 ee_data; | ||
| 13 | }; | ||
| 14 | |||
| 15 | #define SO_EE_ORIGIN_NONE 0 | ||
| 16 | #define SO_EE_ORIGIN_LOCAL 1 | ||
| 17 | #define SO_EE_ORIGIN_ICMP 2 | ||
| 18 | #define SO_EE_ORIGIN_ICMP6 3 | ||
| 19 | |||
| 20 | #define SO_EE_OFFENDER(ee) ((struct sockaddr*)((ee)+1)) | ||
| 21 | |||
| 22 | #ifdef __KERNEL__ | ||
| 23 | |||
| 24 | #include <linux/config.h> | ||
| 25 | #include <net/ip.h> | ||
| 26 | #if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) | ||
| 27 | #include <linux/ipv6.h> | ||
| 28 | #endif | ||
| 29 | |||
| 30 | #define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb)) | ||
| 31 | |||
| 32 | struct sock_exterr_skb | ||
| 33 | { | ||
| 34 | union { | ||
| 35 | struct inet_skb_parm h4; | ||
| 36 | #if defined(CONFIG_IPV6) || defined (CONFIG_IPV6_MODULE) | ||
| 37 | struct inet6_skb_parm h6; | ||
| 38 | #endif | ||
| 39 | } header; | ||
| 40 | struct sock_extended_err ee; | ||
| 41 | u16 addr_offset; | ||
| 42 | u16 port; | ||
| 43 | }; | ||
| 44 | |||
| 45 | #endif | ||
| 46 | |||
| 47 | #endif | ||
