projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
15e8455
)
*cough*
author
Brendan O'Dea
<bod@optus.net>
Tue, 30 Nov 2004 19:34:57 +0000
(19:34 +0000)
committer
Brendan O'Dea
<bod@optus.net>
Tue, 30 Nov 2004 19:34:57 +0000
(19:34 +0000)
ppp.c
patch
|
blob
|
history
diff --git
a/ppp.c
b/ppp.c
index
ee62470
..
c69c603
100644
(file)
--- a/
ppp.c
+++ b/
ppp.c
@@
-1,6
+1,6
@@
// L2TPNS PPP Stuff
// L2TPNS PPP Stuff
-char const *cvs_id_ppp = "$Id: ppp.c,v 1.3
7 2004-11-30 01:35:19
bodea Exp $";
+char const *cvs_id_ppp = "$Id: ppp.c,v 1.3
8 2004-11-30 19:34:57
bodea Exp $";
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
@@
-401,7
+401,7
@@
void processlcp(tunnelidt t, sessionidt s, u8 *p, u16 l)
*q++ = 6;
memset(q, 0, 4); // asyncmap 0
q += 4;
*q++ = 6;
memset(q, 0, 4); // asyncmap 0
q += 4;
- *((u16 *) (response + 2)) =
q - response
; // LCP header length
+ *((u16 *) (response + 2)) =
htons(q - response)
; // LCP header length
break;
case 3: // Authentication-Protocol
break;
case 3: // Authentication-Protocol
@@
-438,7
+438,7
@@
void processlcp(tunnelidt t, sessionidt s, u8 *p, u16 l)
memcpy(q, o, length);
*(u16 *)(q += 2) = htons(PPPPAP); // NAK -> Use PAP instead
q += length;
memcpy(q, o, length);
*(u16 *)(q += 2) = htons(PPPPAP); // NAK -> Use PAP instead
q += length;
- *((u16 *) (response + 2)) =
q - response
;
+ *((u16 *) (response + 2)) =
htons(q - response)
;
}
break;
}
break;
@@
-469,7
+469,7
@@
void processlcp(tunnelidt t, sessionidt s, u8 *p, u16 l)
memcpy(q, o, length);
q += length;
memcpy(q, o, length);
q += length;
- *((u16 *) (response + 2)) =
q - response
; // LCP header length
+ *((u16 *) (response + 2)) =
htons(q - response)
; // LCP header length
}
x -= length;
o += length;
}
x -= length;
o += length;