summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xztcfg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/ztcfg.c b/ztcfg.c
index 3b100e7..aa44f28 100755
--- a/ztcfg.c
+++ b/ztcfg.c
@@ -469,7 +469,7 @@ static int chanconfig(char *keyword, char *args)
cc[x].sigtype = ZT_SIG_HDLCNET;
master = x;
}
- } else if (!strcasecmp(keyword, "fcshdlc") || !strcasecmp(keyword, "dchan")) {
+ } else if (!strcasecmp(keyword, "fcshdlc")) {
sig[x] = "HDLC with FCS check";
if (master) {
cc[x].sigtype = ZT_SIG_SLAVE;
@@ -478,6 +478,9 @@ static int chanconfig(char *keyword, char *args)
cc[x].sigtype = ZT_SIG_HDLCFCS;
master = x;
}
+ } else if (!strcasecmp(keyword, "dchan")) {
+ sig[x] = "D-channel";
+ cc[x].sigtype = ZT_SIG_HDLCFCS;
} else {
fprintf(stderr, "Huh? (%s)\n", keyword);
}