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