You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.2 KiB

  1. --- a/bcrelay.c
  2. +++ b/bcrelay.c
  3. @@ -667,7 +667,7 @@ static void mainloop(int argc, char **ar
  4. * there is no need to concern about the physical/link layer header because it is
  5. * filled in automatically (based on the contents of sa).
  6. */
  7. - if ((nrsent = sendto(cur_ifsnr[j].sock_nr, ipp_p, rlen, MSG_DONTWAIT|MSG_TRYHARD, (struct sockaddr *)&sa, salen)) < 0)
  8. + if ((nrsent = sendto(cur_ifsnr[j].sock_nr, ipp_p, rlen, MSG_DONTWAIT|MSG_DONTROUTE, (struct sockaddr *)&sa, salen)) < 0)
  9. {
  10. if (errno == ENETDOWN) {
  11. syslog(LOG_NOTICE, "ignored ENETDOWN from sendto(), a network interface was going down?");
  12. --- a/compat.c
  13. +++ b/compat.c
  14. @@ -11,10 +11,10 @@
  15. #include "compat.h"
  16. #include "our_syslog.h"
  17. -#ifndef HAVE_STRLCPY
  18. #include <string.h>
  19. #include <stdio.h>
  20. +#ifndef HAVE_STRLCPY
  21. void strlcpy(char *dst, const char *src, size_t size)
  22. {
  23. strncpy(dst, src, size - 1);
  24. --- /dev/null
  25. +++ b/net/ppp_defs.h
  26. @@ -0,0 +1,10 @@
  27. +#ifndef _NET_PPP_DEFS_H
  28. +#define _NET_PPP_DEFS_H 1
  29. +
  30. +#define __need_time_t
  31. +#include <time.h>
  32. +
  33. +#include <asm/types.h>
  34. +#include <linux/ppp_defs.h>
  35. +
  36. +#endif /* net/ppp_defs.h */