summaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorSuper User2008-04-24 09:24:04 +0200
committerSuper User2008-04-24 09:24:04 +0200
commit1bfbfbf903777d13df3107fbc89bdaeb2af9f2d6 (patch)
treeaeaa2122dae723b194b690aa80a4a3cf759fd00d /options.c
parentsocket work (diff)
downloadlcr-1bfbfbf903777d13df3107fbc89bdaeb2af9f2d6.tar.gz
lcr-1bfbfbf903777d13df3107fbc89bdaeb2af9f2d6.tar.xz
lcr-1bfbfbf903777d13df3107fbc89bdaeb2af9f2d6.zip
socket mISDN work
modified: Makefile modified: apppbx.cpp modified: default/interface.conf modified: dss1.cpp modified: interface.c modified: interface.h modified: mISDN.cpp modified: mISDN.h modified: main.h modified: options.c modified: options.h modified: route.c
Diffstat (limited to 'options.c')
-rw-r--r--options.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/options.c b/options.c
index db6c9fc..4c1fabb 100644
--- a/options.c
+++ b/options.c
@@ -13,14 +13,6 @@
struct options options = {
"/usr/local/lcr/log", /* log file */
- {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0},
0x0000, /* debug mode */
'a', /* a-law */
"0", /* national prefix */
@@ -139,31 +131,6 @@ int read_options(void)
PDEBUG(DEBUG_CONFIG, "log file: %s\n", options.log);
} else
- if (!strcmp(option,"port"))
- {
- i = strtol(param, NULL, 0);
- if (i < 1 || i > sizeof(options.ports))
- {
- PERROR_RUNTIME("Error in %s (line %d): port number %s out of range.\n", filename, line, option);
- goto error;
- }
- options.ports[i] |= FLAG_PORT_USE;
-
- PDEBUG(DEBUG_CONFIG, "adding interface: %d (param=%s)\n", i, param);
- if (strstr(param, "ptp"))
- {
- options.ports[i] |= FLAG_PORT_PTP;
- PDEBUG(DEBUG_CONFIG, " -> interface shall be ptp\n");
- }
- } else
-#if 0
- if (!strcmp(option,"ptp"))
- {
- options.ptp = 1;
-
- PDEBUG(DEBUG_CONFIG, "ptp layer-2 watch and keep established.\n");
- } else
-#endif
if (!strcmp(option,"alaw"))
{
options.law = 'a';