1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
The first character of the argument of the new config option "sentmode"
will be used as the transfert mode in ?lo files ("^" is the default).
--- a/ifgate/ifpack.c
+++ b/ifgate/ifpack.c
@@ -42,6 +42,7 @@ extern char *pkdname(faddr *,char);
extern char *logname;
extern int fakeoutbound;
+extern char *sentmode;
static int each1(faddr*,char,int,char*);
static int each2(faddr*,char,int,char*);
@@ -435,7 +436,7 @@ char *pktfn;
}
if (dosoutbound)
{
- fprintf(fp,"#%s",dosoutbound);
+ fprintf(fp,"%c%s",sentmode[0],dosoutbound);
if (*(dosoutbound+
strlen(dosoutbound)-1) != '\\')
fputc('\\',fp);
@@ -446,7 +447,7 @@ char *pktfn;
fputc('\r',fp);
fputc('\n',fp);
}
- else fprintf(fp,"#%s\n",arcfn);
+ else fprintf(fp,"%c%s\n",sentmode[0],arcfn);
needadd=0;
}
}
|