blob: 5ab2bd12adbaea9ee160d8863a99b3042a5fc981 [file] [log] [blame]
b.liue9582032025-04-17 19:18:16 +08001--- a/bcrelay.c
2+++ b/bcrelay.c
3@@ -746,7 +746,7 @@ static void mainloop(int argc, char **ar
4 * because it is filled in automatically
5 * (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/plugins/pptpd-logwtmp.c
13+++ b/plugins/pptpd-logwtmp.c
14@@ -17,6 +17,7 @@
15 #include <pppd/pppd.h>
16 #include <pppd/options.h>
17
18+extern void logwtmp(const char *line, const char *name, const char *host);
19 char pppd_version[] = PPPD_VERSION;
20
21 static char pptpd_original_ip[PATH_MAX+1];