Linux 4.6-rc6
[cris-mirror.git] / include / linux / errqueue.h
blob9ca23fcfb5d73131b564ad81d887929abc0e954b
1 #ifndef _LINUX_ERRQUEUE_H
2 #define _LINUX_ERRQUEUE_H 1
5 #include <net/ip.h>
6 #if IS_ENABLED(CONFIG_IPV6)
7 #include <linux/ipv6.h>
8 #endif
9 #include <uapi/linux/errqueue.h>
11 #define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb))
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;
25 #endif