X-Git-Url: http://git.sameswireless.fr/l2tpns.git/blobdiff_plain/32f6edf2662e26ad6e5a9020483e4a6a49e4f95b..8192b613536019798d71a3507eddd59744cfbe57:/ppp.c diff --git a/ppp.c b/ppp.c index 9d5a2f3..222cdbd 100644 --- a/ppp.c +++ b/ppp.c @@ -1,6 +1,6 @@ // L2TPNS PPP Stuff -char const *cvs_id_ppp = "$Id: ppp.c,v 1.23 2004-11-09 05:42:53 bodea Exp $"; +char const *cvs_id_ppp = "$Id: ppp.c,v 1.25 2004-11-09 05:49:08 bodea Exp $"; #include #include @@ -771,7 +771,7 @@ void send_ipin(sessionidt s, u8 *buf, int len) if (session[s].snoop_ip && session[s].snoop_port) { // Snooping this session - snoop_send_packet(p + 4, l - 4, session[s].snoop_ip, session[s].snoop_port); + snoop_send_packet(buf + 4, len - 4, session[s].snoop_ip, session[s].snoop_port); } // Increment packet counters @@ -783,7 +783,7 @@ void send_ipin(sessionidt s, u8 *buf, int len) eth_tx += len - 4; STAT(tun_tx_packets); - INC_STAT(tun_tx_bytes, l - 4); + INC_STAT(tun_tx_bytes, len - 4); }