2005-04-17 02:20:36 +04:00
|
|
|
#ifndef _LINUX_ERRQUEUE_H
|
|
|
|
#define _LINUX_ERRQUEUE_H 1
|
|
|
|
|
|
|
|
|
|
|
|
#include <net/ip.h>
|
2011-12-10 13:48:31 +04:00
|
|
|
#if IS_ENABLED(CONFIG_IPV6)
|
2005-04-17 02:20:36 +04:00
|
|
|
#include <linux/ipv6.h>
|
|
|
|
#endif
|
2012-10-13 13:46:48 +04:00
|
|
|
#include <uapi/linux/errqueue.h>
|
2005-04-17 02:20:36 +04:00
|
|
|
|
|
|
|
#define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb))
|
|
|
|
|
2009-11-04 20:50:58 +03:00
|
|
|
struct sock_exterr_skb {
|
2005-04-17 02:20:36 +04:00
|
|
|
union {
|
|
|
|
struct inet_skb_parm h4;
|
2011-12-10 13:48:31 +04:00
|
|
|
#if IS_ENABLED(CONFIG_IPV6)
|
2005-04-17 02:20:36 +04:00
|
|
|
struct inet6_skb_parm h6;
|
|
|
|
#endif
|
|
|
|
} header;
|
|
|
|
struct sock_extended_err ee;
|
|
|
|
u16 addr_offset;
|
2006-09-28 05:34:02 +04:00
|
|
|
__be16 port;
|
2005-04-17 02:20:36 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|