1 diff -Nur pptpd-1.3.0/pptpgre.c.orig pptpd-1.3.0/pptpgre.c
2 --- pptpd-1.3.0/pptpgre.c.orig 2006-04-18 02:13:10.000000000 -0400
3 +++ pptpd-1.3.0/pptpgre.c 2006-04-18 02:14:19.000000000 -0400
6 #define PACKET_MAX 8196
8 +/* Command Line Variable Args */
9 +extern int pptpctrl_debug;
11 typedef int (*callback_t)(int cl, void *pack, unsigned int len);
13 /* test for a 32 bit counter overflow */
15 stats.rx_lost += head->seq - gre.seq_recv - 1;
16 syslog(LOG_DEBUG, "GRE: timeout waiting for %d packets", head->seq - gre.seq_recv - 1);
18 - syslog(LOG_DEBUG, "GRE: accepting #%d from queue", head->seq);
19 + if (pptpctrl_debug) {
20 + syslog(LOG_DEBUG, "GRE: accepting #%d from queue", head->seq);
22 gre.seq_recv = head->seq;
23 status = callback(cl, head->packet, head->packlen);
27 /* check for out-of-order sequence number */
28 if (seq_greater(seq, gre.seq_recv)) {
29 - syslog(LOG_DEBUG, "GRE: accepting packet #%d", seq);
30 + if (pptpctrl_debug) {
31 + syslog(LOG_DEBUG, "GRE: accepting packet #%d", seq);
35 return cb(cl, buffer + ip_len + headersize, payload_len);