Commit Graph

11 Commits

Author SHA1 Message Date
kai 0748132381 make isdnctrl independent of the version of installed kernel headers,
we have our own copy now.
2001-05-23 14:48:23 +00:00
fritz d88910c3d2 Bugfix: HAVE_TIMRU was used before including config.h 1998-11-15 14:40:23 +00:00
fritz aa0f3b29f1 Make isdnctrl compile without TIMRU in kernel (2.0.36-pre20/21) 1998-11-11 23:53:00 +00:00
paul 33b18798d9 includes changed because of problems with Linux 2.1 kernel includes 1998-08-05 07:40:19 +00:00
cal c326587c36 permissions corrected 1998-06-09 18:17:30 +00:00
cal 99c021b3d2 *** empty log message *** 1998-06-09 18:16:38 +00:00
cal a05c712d86 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:29 +00:00
cal 2856594657 applied mini-glibc-patch by Andreas Steffen <deas@uni-hamburg.de> 1998-06-09 15:13:55 +00:00
cal 0903e3b9be fixed a problem parsing TimRu-Commands
started with TimRu-man-page
1998-03-16 09:40:51 +00:00
fritz b7dd948d1b Fix: Did not compile without TIMRU in kernel. 1998-03-08 01:04:14 +00:00
cal ab5bf4c91d added support for dynamic timeout-rules vs. 971110 1998-03-07 18:25:52 +00:00