errqueue.h 450 B

12345678910111213141516171819202122232425
  1. #ifndef _LINUX_ERRQUEUE_H
  2. #define _LINUX_ERRQUEUE_H 1
  3. #include <net/ip.h>
  4. #if IS_ENABLED(CONFIG_IPV6)
  5. #include <linux/ipv6.h>
  6. #endif
  7. #include <uapi/linux/errqueue.h>
  8. #define SKB_EXT_ERR(skb) ((struct sock_exterr_skb *) ((skb)->cb))
  9. struct sock_exterr_skb {
  10. union {
  11. struct inet_skb_parm h4;
  12. #if IS_ENABLED(CONFIG_IPV6)
  13. struct inet6_skb_parm h6;
  14. #endif
  15. } header;
  16. struct sock_extended_err ee;
  17. u16 addr_offset;
  18. __be16 port;
  19. };
  20. #endif