X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/28dd7ee4432424d00361689156e8a366b8318a4a..2d71fa112c0a2c84d100a8877b1e93b9c079e291:/ppp.c diff --git a/ppp.c b/ppp.c index 4e19251..4215cb8 100644 --- a/ppp.c +++ b/ppp.c @@ -1,6 +1,6 @@ // L2TPNS PPP Stuff -char const *cvs_id_ppp = "$Id: ppp.c,v 1.83 2005-09-16 05:20:32 bodea Exp $"; +char const *cvs_id_ppp = "$Id: ppp.c,v 1.84 2005-09-16 13:20:39 bodea Exp $"; #include #include @@ -459,7 +459,7 @@ static void ppp_code_rej(sessionidt s, tunnelidt t, uint16_t proto, *q = CodeRej; *(q + 1) = ++sess_local[s].lcp_ident; - *(uint16_t *)(q + 2) = l; + *(uint16_t *)(q + 2) = htons(l); memcpy(q + 4, p, l - 4); LOG(2, s, t, "Unexpected %s code %s\n", pname, ppp_code(*p));