errqueue.h 485 B

123456789101112131415161718192021222324252627
  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. u8 opt_stats:1,
  20. unused:7;
  21. };
  22. #endif