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