Commit Graph

10 Commits

Author SHA1 Message Date
Fritz Elfert cec62f2591 Bugfix: HAVE_TIMRU was used before including config.h 1998-11-15 14:40:23 +00:00
Fritz Elfert f8328d2069 Make isdnctrl compile without TIMRU in kernel (2.0.36-pre20/21) 1998-11-11 23:53:02 +00:00
Paul Slootman fea2c85c1f includes changed because of problems with Linux 2.1 kernel includes 1998-08-05 07:40:19 +00:00
Christian A. Lademann 1fcae023ff permissions corrected 1998-06-09 18:17:31 +00:00
Christian A. Lademann da3ee2bdab *** empty log message *** 1998-06-09 18:16:39 +00:00
Christian A. Lademann 9ca0e5aaf5 added the command "isdnctrl name ifdefaults": the named device is reset
to some reasonable defaults.

Internally, isdnctrl.c contains a list of functions (defs_fcns []), which
are called one after the other with the interface-name as a patameter.
Each function returns a char* to a string containing iscnctrl-commands
to be executed. Example:

char *
defs_budget(char *id) {
	static char	r [1024];
	char	*p = r;

	p += sprintf(p, "budget %s dial 10 1min\n", id);
	p += sprintf(p, "budget %s charge 100 1day\n", id);
	p += sprintf(p, "budget %s online 8hour 1day\n", id);

	return(r);
}

The advantage of this approach is, that even complex commands can be executed.

PS: The function defs_basic() in isdnctrl.c is not complete.
1998-06-09 18:11:36 +00:00
Christian A. Lademann 25f377cc11 applied mini-glibc-patch by Andreas Steffen <deas@uni-hamburg.de> 1998-06-09 15:13:55 +00:00
Christian A. Lademann b90c92c7ab fixed a problem parsing TimRu-Commands
started with TimRu-man-page
1998-03-16 09:40:57 +00:00
Fritz Elfert ea60e597a7 Fix: Did not compile without TIMRU in kernel. 1998-03-08 01:04:19 +00:00
Christian A. Lademann 0778b3f949 added support for dynamic timeout-rules vs. 971110 1998-03-07 18:26:07 +00:00