From: Paul Mackerras Date: Sun, 1 May 1994 11:45:09 +0000 (+0000) Subject: fix printing of ipcp packets on little-endian machines X-Git-Tag: ppp-2-1-2a~59 X-Git-Url: https://git.ozlabs.org/?p=ppp.git;a=commitdiff_plain;h=3f2440637ea930c5c31e82e93772f19dfffe8a06;ds=sidebyside fix printing of ipcp packets on little-endian machines --- 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; }