dropbear-2011.54-no-ipv6.patch 673 B

123456789101112131415161718
  1. Check for IPV6_TCLASS instead of IPPROTO_IPV6 since
  2. it's present on non-IPv6 enabled toolchains too.
  3. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
  4. ---
  5. diff -Nura dropbear-2011.54.orig/dbutil.c dropbear-2011.54/dbutil.c
  6. --- dropbear-2011.54.orig/dbutil.c 2011-11-08 09:48:15.000000000 -0300
  7. +++ dropbear-2011.54/dbutil.c 2011-11-09 12:14:59.430074138 -0300
  8. @@ -164,7 +164,7 @@
  9. /* set the TOS bit for either ipv4 or ipv6 */
  10. #ifdef IPTOS_LOWDELAY
  11. val = IPTOS_LOWDELAY;
  12. -#ifdef IPPROTO_IPV6
  13. +#ifdef IPV6_TCLASS
  14. setsockopt(sock, IPPROTO_IPV6, IPV6_TCLASS, (void*)&val, sizeof(val));
  15. #endif
  16. setsockopt(sock, IPPROTO_IP, IP_TOS, (void*)&val, sizeof(val));