summaryrefslogtreecommitdiffstats
path: root/net/pptpd/patches/100-musl-compat.patch
blob: 5ab2bd12adbaea9ee160d8863a99b3042a5fc981 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
--- a/bcrelay.c
+++ b/bcrelay.c
@@ -746,7 +746,7 @@ static void mainloop(int argc, char **ar
                                * because it is filled in automatically
                                * (based on the contents of sa).
                                */
-                              if ((nrsent = sendto(cur_ifsnr[j].sock_nr, ipp_p, rlen, MSG_DONTWAIT|MSG_TRYHARD, (struct sockaddr *)&sa, salen)) < 0)
+                              if ((nrsent = sendto(cur_ifsnr[j].sock_nr, ipp_p, rlen, MSG_DONTWAIT|MSG_DONTROUTE, (struct sockaddr *)&sa, salen)) < 0)
                                 {
                                   if (errno == ENETDOWN) {
                                     syslog(LOG_NOTICE, "ignored ENETDOWN from sendto(), a network interface was going down?");
--- a/plugins/pptpd-logwtmp.c
+++ b/plugins/pptpd-logwtmp.c
@@ -17,6 +17,7 @@
 #include <pppd/pppd.h>
 #include <pppd/options.h>
 
+extern void logwtmp(const char *line, const char *name, const char *host);
 char pppd_version[] = PPPD_VERSION;
 
 static char pptpd_original_ip[PATH_MAX+1];