From: bodea Date: Tue, 30 Nov 2004 01:35:19 +0000 (+0000) Subject: fix byte ordering in log X-Git-Tag: release_2_0_9~5 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/280e18d0dc3c075ff43a3fe81ee17956b0fc658b fix byte ordering in log --- diff --git a/ppp.c b/ppp.c index bb7dc83..65573e3 100644 --- a/ppp.c +++ b/ppp.c @@ -1,6 +1,6 @@ // L2TPNS PPP Stuff -char const *cvs_id_ppp = "$Id: ppp.c,v 1.36 2004/11/30 01:10:44 bodea Exp $"; +char const *cvs_id_ppp = "$Id: ppp.c,v 1.37 2004/11/30 01:35:19 bodea Exp $"; #include #include @@ -666,7 +666,8 @@ void processipcp(tunnelidt t, sessionidt s, u8 *p, u16 l) { *(u32 *) (i + 2) = htonl(session[s].dns1); *p = ConfigNak; - LOG(5, s, t, " DNS1 = %s\n", fmtaddr(session[s].dns1, 0)); + LOG(5, s, t, " DNS1 = %s\n", + fmtaddr(htonl(session[s].dns1), 0)); } } if ((i = findppp(p, 0x83))) // Secondary DNS address (TBA, is it) @@ -675,7 +676,8 @@ void processipcp(tunnelidt t, sessionidt s, u8 *p, u16 l) { *(u32 *) (i + 2) = htonl(session[s].dns2); *p = ConfigNak; - LOG(5, s, t, " DNS2 = %s\n", fmtaddr(session[s].dns2, 0)); + LOG(5, s, t, " DNS2 = %s\n", + fmtaddr(htonl(session[s].dns2), 0)); } } i = findppp(p, 3); // IP address