]> git.karo-electronics.de Git - karo-tx-linux.git/blob - include/linux/errqueue.h
Merge tag 'for-linus-4.11b-rc4-tag' of git://git.kernel.org/pub/scm/linux/kernel...
[karo-tx-linux.git] / include / linux / errqueue.h
1 #ifndef _LINUX_ERRQUEUE_H
2 #define _LINUX_ERRQUEUE_H 1
3
4
5 #include <net/ip.h>
6 #if IS_ENABLED(CONFIG_IPV6)
7 #include <linux/ipv6.h>
8 #endif
9 #include <uapi/linux/errqueue.h>
10
11 #define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb))
12
13 struct sock_exterr_skb {
14         union {
15                 struct inet_skb_parm    h4;
16 #if IS_ENABLED(CONFIG_IPV6)
17                 struct inet6_skb_parm   h6;
18 #endif
19         } header;
20         struct sock_extended_err        ee;
21         u16                             addr_offset;
22         __be16                          port;
23         u8                              opt_stats:1,
24                                         unused:7;
25 };
26
27 #endif