projects
/
l2tpns.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6e868a4
)
missed length
author
bodea
<bodea>
Tue, 10 May 2005 00:56:12 +0000
(
00:56
+0000)
committer
bodea
<bodea>
Tue, 10 May 2005 00:56:12 +0000
(
00:56
+0000)
ppp.c
patch
|
blob
|
history
diff --git
a/ppp.c
b/ppp.c
index
d1258cf
..
9a76d33
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.5
3 2005/05/08 06:28
:12 bodea Exp $";
+char const *cvs_id_ppp = "$Id: ppp.c,v 1.5
4 2005/05/10 00:56
:12 bodea Exp $";
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
@@
-1308,6
+1308,8
@@
void sendlcp(tunnelidt t, sessionidt s, int authtype)
*l++ = ConfigReq;
*l++ = (time_now % 255) + 1; // ID
*l++ = ConfigReq;
*l++ = (time_now % 255) + 1; // ID
+ l += 2; //Save space for length
+
*l++ = 1; *l++ = 4; // Maximum-Receive-Unit (length 4)
*(uint16_t *) l = htons(session[s].mru); l += 2;
*l++ = 1; *l++ = 4; // Maximum-Receive-Unit (length 4)
*(uint16_t *) l = htons(session[s].mru); l += 2;