X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fipcp.c;h=49144056c92600a21af1fed129cac18016458e8c;hp=94929cc6a8b38d47845cbea8510abe1f951fe47e;hb=c82ba0523c4c13c415bdd27c2695b90664508cd7;hpb=f42b7328c73feeedf045f02e02e2c7e86cccbd15 diff --git a/pppd/ipcp.c b/pppd/ipcp.c index 94929cc..4914405 100644 --- a/pppd/ipcp.c +++ b/pppd/ipcp.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: ipcp.c,v 1.4 1994/04/11 07:19:06 paulus Exp $"; +static char rcsid[] = "$Id: ipcp.c,v 1.6 1994/05/24 05:57:56 paulus Exp $"; #endif /* @@ -26,18 +26,13 @@ static char rcsid[] = "$Id: ipcp.c,v 1.4 1994/04/11 07:19:06 paulus Exp $"; */ #include +#include #include -#include #include #include -#include #include #include -#include -#include - -#include #include "pppd.h" #include "ppp.h" @@ -1157,9 +1152,9 @@ ipcp_printpkt(p, plen, printer, arg) if (olen == CILEN_ADDRS) { p += 2; GETLONG(cilong, p); - printer(arg, "addrs %s", ip_ntoa(cilong)); + printer(arg, "addrs %s", ip_ntoa(htonl(cilong))); GETLONG(cilong, p); - printer(arg, " %s", ip_ntoa(cilong)); + printer(arg, " %s", ip_ntoa(htonl(cilong))); } break; case CI_COMPRESSTYPE: @@ -1183,7 +1178,7 @@ ipcp_printpkt(p, plen, printer, arg) if (olen == CILEN_ADDR) { p += 2; GETLONG(cilong, p); - printer(arg, "addr %s", ip_ntoa(cilong)); + printer(arg, "addr %s", ip_ntoa(htonl(cilong))); } break; }