X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Fipcp.c;h=a3a9247bf46b00686923b122d01d97360f5e7c54;hp=94929cc6a8b38d47845cbea8510abe1f951fe47e;hb=3f2440637ea930c5c31e82e93772f19dfffe8a06;hpb=e1c700a6282f912d8f092bbc61a2172b8fc75611 diff --git a/pppd/ipcp.c b/pppd/ipcp.c index 94929cc..a3a9247 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.5 1994/05/01 11:45:09 paulus Exp $"; #endif /* @@ -1157,9 +1157,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 +1183,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; }