Blame view

include/linux/errqueue.h 450 Bytes
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
1
2
  #ifndef _LINUX_ERRQUEUE_H
  #define _LINUX_ERRQUEUE_H 1
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
3

1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
4
  #include <net/ip.h>
dfd56b8b3   Eric Dumazet   net: use IS_ENABL...
5
  #if IS_ENABLED(CONFIG_IPV6)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
6
7
  #include <linux/ipv6.h>
  #endif
607ca46e9   David Howells   UAPI: (Scripted) ...
8
  #include <uapi/linux/errqueue.h>
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
9
10
  
  #define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb))
d94d9fee9   Eric Dumazet   net: cleanup incl...
11
  struct sock_exterr_skb {
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
12
13
  	union {
  		struct inet_skb_parm	h4;
dfd56b8b3   Eric Dumazet   net: use IS_ENABL...
14
  #if IS_ENABLED(CONFIG_IPV6)
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
15
16
17
18
19
  		struct inet6_skb_parm	h6;
  #endif
  	} header;
  	struct sock_extended_err	ee;
  	u16				addr_offset;
b406313c7   Al Viro   [NET]: struct soc...
20
  	__be16				port;
1da177e4c   Linus Torvalds   Linux-2.6.12-rc2
21
22
23
  };
  
  #endif