X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=pppd%2Fsys-linux.c;h=718a678bfbc4a4abf3af87d0547636b0a3b8a5a8;hb=c1d7b083dc15423cae75be3c8b50a9a35aceac21;hp=1139369f6edad62861c57b5bff98b767c23a7379;hpb=408e8824289fa317933d199b0926aff7dc4adcb1;p=ppp.git diff --git a/pppd/sys-linux.c b/pppd/sys-linux.c index 1139369..718a678 100644 --- a/pppd/sys-linux.c +++ b/pppd/sys-linux.c @@ -866,6 +866,7 @@ void ppp_send_config (int unit,int mtu,u_int32_t asyncmap,int pcomp,int accomp) x = get_flags(); x = pcomp ? x | SC_COMP_PROT : x & ~SC_COMP_PROT; x = accomp ? x | SC_COMP_AC : x & ~SC_COMP_AC; + x = sync_serial ? x | SC_SYNC : x & ~SC_SYNC; set_flags(x); } @@ -2029,10 +2030,10 @@ int sifaddr (int unit, u_int32_t our_adr, u_int32_t his_adr, if (ioctl(sock_fd, SIOCSIFADDR, (caddr_t) &ifr) < 0) { if (errno != EEXIST) { if (! ok_error (errno)) - error("ioctl(SIOCAIFADDR): %m(%d)", errno); + error("ioctl(SIOCSIFADDR): %m(%d)", errno); } else { - warn("ioctl(SIOCAIFADDR): Address already exists"); + warn("ioctl(SIOCSIFADDR): Address already exists"); } return (0); } @@ -2300,10 +2301,10 @@ int sipxfaddr (int unit, unsigned long int network, unsigned char * node ) result = 0; if (errno != EEXIST) { if (! ok_error (errno)) - dbglog("ioctl(SIOCAIFADDR, CRTITF): %m (%d)", errno); + dbglog("ioctl(SIOCSIFADDR, CRTITF): %m (%d)", errno); } else { - warn("ioctl(SIOCAIFADDR, CRTITF): Address already exists"); + warn("ioctl(SIOCSIFADDR, CRTITF): Address already exists"); } } close (skfd); @@ -2346,7 +2347,7 @@ int cipxfaddr (int unit) */ if (ioctl(skfd, SIOCSIFADDR, (caddr_t) &ifr) < 0) { if (! ok_error (errno)) - info("ioctl(SIOCAIFADDR, IPX_DLTITF): %m (%d)", errno); + info("ioctl(SIOCSIFADDR, IPX_DLTITF): %m (%d)", errno); result = 0; } close (skfd);