0002-update-netinet-udp.h-for-linux-v4.18.patch 943 B

12345678910111213141516171819202122232425262728293031
  1. From 71b5cb373895464a7a311479de361c73d29a05a5 Mon Sep 17 00:00:00 2001
  2. From: Szabolcs Nagy <nsz@port70.net>
  3. Date: Tue, 21 Aug 2018 22:34:08 +0000
  4. Subject: [PATCH 2/8] update netinet/udp.h for linux v4.18
  5. add UDP_NO_CHECK6_* to restrict zero UDP6 checksums, new in linux commit
  6. 1c19448c9ba6545b80ded18488a64a7f3d8e6998 (pre-v4.18 change, was missed)
  7. add UDP_SEGMENT to support generic segmentation offload for udp datagrams,
  8. bec1f6f697362c5bc635dacd7ac8499d0a10a4e7 (new in v4.18)
  9. ---
  10. include/netinet/udp.h | 3 +++
  11. 1 file changed, 3 insertions(+)
  12. diff --git a/include/netinet/udp.h b/include/netinet/udp.h
  13. index 030e8fb2..993c3478 100644
  14. --- a/include/netinet/udp.h
  15. +++ b/include/netinet/udp.h
  16. @@ -24,6 +24,9 @@ struct udphdr {
  17. #define UDP_CORK 1
  18. #define UDP_ENCAP 100
  19. +#define UDP_NO_CHECK6_TX 101
  20. +#define UDP_NO_CHECK6_RX 102
  21. +#define UDP_SEGMENT 103
  22. #define UDP_ENCAP_ESPINUDP_NON_IKE 1
  23. #define UDP_ENCAP_ESPINUDP 2
  24. --
  25. 2.17.1