source:
freewrt/package/pptpd/patches/pptpgre-use-debug-option.patch@
428f140
| Last change on this file since 428f140 was 475ad56, checked in by , 20 years ago | |
|---|---|
|
|
| File size: 1.2 KB | |
-
pptpd-1.3.0/pptpgre.c
diff -Nur pptpd-1.3.0/pptpgre.c.orig pptpd-1.3.0/pptpgre.c
old new 46 46 47 47 #define PACKET_MAX 8196 48 48 49 /* Command Line Variable Args */ 50 extern int pptpctrl_debug; 51 49 52 typedef int (*callback_t)(int cl, void *pack, unsigned int len); 50 53 51 54 /* test for a 32 bit counter overflow */ … … 319 322 stats.rx_lost += head->seq - gre.seq_recv - 1; 320 323 syslog(LOG_DEBUG, "GRE: timeout waiting for %d packets", head->seq - gre.seq_recv - 1); 321 324 } 322 syslog(LOG_DEBUG, "GRE: accepting #%d from queue", head->seq); 325 if (pptpctrl_debug) { 326 syslog(LOG_DEBUG, "GRE: accepting #%d from queue", head->seq); 327 } 323 328 gre.seq_recv = head->seq; 324 329 status = callback(cl, head->packet, head->packlen); 325 330 pqueue_del(head); … … 399 404 } 400 405 /* check for out-of-order sequence number */ 401 406 if (seq_greater(seq, gre.seq_recv)) { 402 syslog(LOG_DEBUG, "GRE: accepting packet #%d", seq); 407 if (pptpctrl_debug) { 408 syslog(LOG_DEBUG, "GRE: accepting packet #%d", seq); 409 } 403 410 stats.rx_accepted++; 404 411 gre.seq_recv = seq; 405 412 return cb(cl, buffer + ip_len + headersize, payload_len);
Note:
See TracBrowser
for help on using the repository browser.
