projects
/
l2tpns.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
l2tpns-dont-timeshift-unidirectional-traffic.patch
[l2tpns.git]
/
ppp.c
diff --git
a/ppp.c
b/ppp.c
index
5c23833
..
f84386c
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.1
3 2004/08/26 04:44:26
fred_nerk Exp $";
+char const *cvs_id_ppp = "$Id: ppp.c,v 1.1
5 2004/09/19 23:19:23
fred_nerk Exp $";
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
@@
-512,7
+512,8
@@
void processipcp(tunnelidt t, sessionidt s, u8 * p, u16 l)
{
// happy with our IPCP
u16 r = session[s].radius;
{
// happy with our IPCP
u16 r = session[s].radius;
- if ((!r || radius[r].state == RADIUSIPCP) && !session[s].walled_garden) {
+ if ((!r || radius[r].state == RADIUSIPCP) && !session[s].walled_garden)
+ {
if (!r)
r = radiusnew(s);
if (r)
if (!r)
r = radiusnew(s);
if (r)
@@
-636,7
+637,6
@@
void processipin(tunnelidt t, sessionidt s, u8 * p, u16 l)
{
ipt ip;
{
ipt ip;
-
CSTAT(call_processipin);
log_hex(5, "IP", p, l);
CSTAT(call_processipin);
log_hex(5, "IP", p, l);
@@
-676,7
+676,7
@@
void processipin(tunnelidt t, sessionidt s, u8 * p, u16 l)
if (session[s].snoop_ip && session[s].snoop_port)
{
if (session[s].snoop_ip && session[s].snoop_port)
{
- // Snooping this session
, send it to ASIO
+ // Snooping this session
snoop_send_packet(p, l, session[s].snoop_ip, session[s].snoop_port);
}
STAT(tun_tx_packets);
snoop_send_packet(p, l, session[s].snoop_ip, session[s].snoop_port);
}
STAT(tun_tx_packets);
@@
-814,7
+814,6
@@
void sendchap(tunnelidt t, sessionidt s)
// returns start of PPP frame
u8 *makeppp(u8 * b, int size, u8 * p, int l, tunnelidt t, sessionidt s, u16 mtype)
{
// returns start of PPP frame
u8 *makeppp(u8 * b, int size, u8 * p, int l, tunnelidt t, sessionidt s, u16 mtype)
{
-
if (size < 12)
return NULL; // Need more space than this!!
if (size < 12)
return NULL; // Need more space than this!!