Added some debug logging to investigate a problem with outbound scanning

This commit is contained in:
Michiel Broek 2007-09-14 19:14:28 +00:00
parent 04211b122e
commit 5591a429eb
2 changed files with 10 additions and 2 deletions

View File

@ -13,6 +13,10 @@ v0.91.11 02-Sep-2007
mbfido: mbfido:
Fixed date conversion in netmail-email gate. Fixed date conversion in netmail-email gate.
mbtask:
Added some debug logging to investigate a problem with
outbound scanning.
v0.91.10 21-Aug-2007 - 02-Sep-2007 v0.91.10 21-Aug-2007 - 02-Sep-2007

View File

@ -86,6 +86,7 @@ static int scan_dir(int (*fn)(faddr *, char, int, char *), char *dname, int ispo
if ((strcasecmp(de->d_name+9,"pnt") == 0) && !ispoint) { if ((strcasecmp(de->d_name+9,"pnt") == 0) && !ispoint) {
sscanf(de->d_name,"%04x%04x",&addr.net,&addr.node); sscanf(de->d_name,"%04x%04x",&addr.net,&addr.node);
Syslog('m', "sscanf 1 \"%s\" \"%s\" => %d %d", dname, de->d_name, addr.net, addr.node);
if ((rc = scan_dir(fn, fname, 1))) if ((rc = scan_dir(fn, fname, 1)))
goto exout; goto exout;
} else if ((strcasecmp(de->d_name+8,".out") == 0) || } else if ((strcasecmp(de->d_name+8,".out") == 0) ||
@ -104,10 +105,13 @@ static int scan_dir(int (*fn)(faddr *, char, int, char *), char *dname, int ispo
(strcasecmp(de->d_name+8,".dlo") == 0) || (strcasecmp(de->d_name+8,".dlo") == 0) ||
(strcasecmp(de->d_name+8,".req") == 0) || (strcasecmp(de->d_name+8,".req") == 0) ||
(strcasecmp(de->d_name+8,".pol") == 0)) { (strcasecmp(de->d_name+8,".pol") == 0)) {
if (ispoint) if (ispoint) {
sscanf(de->d_name,"%08x", &addr.point); sscanf(de->d_name,"%08x", &addr.point);
else Syslog('m', "sscanf 3 \"%s\" \"%s\" => %d %d %d", dname, de->d_name, addr.net, addr.node, addr.point);
} else {
sscanf(de->d_name,"%04x%04x", &addr.net,&addr.node); sscanf(de->d_name,"%04x%04x", &addr.net,&addr.node);
Syslog('m', "sscanf 2 \"%s\" \"%s\" => %d %d", dname, de->d_name, addr.net, addr.node);
}
flavor = tolower(de->d_name[9]); flavor = tolower(de->d_name[9]);
if (flavor == 'f') if (flavor == 'f')
flavor='o'; flavor='o';