--- 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];