X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/951e323abd5ad7d7e253d04d6ff8c0a7a2c52b82..63f4e051f5a48ed751954b08a87cfb49a70be9d3:/ppp.c?ds=sidebyside diff --git a/ppp.c b/ppp.c index 9de23e0..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.35 2004/11/30 01:08:21 bodea Exp $"; +char const *cvs_id_ppp = "$Id: ppp.c,v 1.37 2004/11/30 01:35:19 bodea Exp $"; #include #include @@ -483,7 +483,7 @@ void processlcp(tunnelidt t, sessionidt s, u8 *p, u16 l) *q = ConfigAck; } - LOG(3, s, t, "Sending %s\n", ppp_lcp_types[response]); + LOG(3, s, t, "Sending %s\n", ppp_lcp_types[*response]); tunnelsend(b, l + (q - b), t); if (!(session[s].flags & SF_LCP_ACKED)) @@ -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