diff options
author | Lennart Poettering <lennart@poettering.net> | 2004-01-08 21:21:42 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2004-01-08 21:21:42 +0000 |
commit | 9f14b1b80e6b09e6b2dc067704fff2034dc0ad23 (patch) | |
tree | c54c5e55f901ef42849b4ce74e89a7207a70b6ce /src/msntab.c | |
parent | af93dd72c42bce9dc5528d7de9fd09ec285d8cb7 (diff) |
Assorted work
git-svn-id: file:///home/lennart/svn/public/ivam2/trunk@18 dbf6933d-3bce-0310-9bcc-ed052ba35b35
Diffstat (limited to 'src/msntab.c')
-rw-r--r-- | src/msntab.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/msntab.c b/src/msntab.c index 09709cc..cf84ec8 100644 --- a/src/msntab.c +++ b/src/msntab.c @@ -118,6 +118,9 @@ static int parse_options(const char *s, struct tabentry *t) { else if (!strcmp(o, "shbuf")) { t->shbuf = 1; continue; + } else if (!strcmp(o, "pipehack")) { + t->pipehack = 1; + continue; } else if (!strncmp(o, "rings=", 6)) { t->rings = atoi(o+6); continue; @@ -294,12 +297,13 @@ static void dump_entry(struct tabentry *t) { } else strncpy(s, "NOARGS", sizeof(s)); - daemon_log(LOG_INFO, "[%s:%02u] %-12s -> %-12s; shbuf=%-3s; rings=%u; action=%s; args=<%s>", + daemon_log(LOG_INFO, "[%s:%02u] %-12s -> %-12s; shbuf=%c; pipehack=%c; rings=%u; action=%s; args=<%s>", t->filename, t->line, t->local, t->remote, - t->shbuf ? "yes" : "no", + t->shbuf ? 'y' : 'n', + t->pipehack ? 'y' : 'n', t->rings, t->action == CALL_ACTION_ACCEPT ? "ACCEPT" : (t->action == CALL_ACTION_HANGUP ? "HANGUP" : "IGNORE"), s); |