freebsd-nq/share/examples/isdn/i4brunppp
Hellmuth Michaelis fae7473ba4 Add a patch from the isdn mailinglist, Juha writes:
ppp in 4.x apparently does a close(2) after opening the tun device;
 i4brunppp starts up with only file descriptors 0 and 1 open (to the rbch
 device) -> tun gets opened as 2 -> tun gets closed -> later use results
 in EBADF. A quick fix to i4brunppp.c makes the thing work (I know, this
 is ugly, but I needed it up quick...):

Submitted by:	Juha-Matti Liukkonen <jml@cubical.fi>
2001-07-21 11:52:31 +00:00
..
i4brunppp-isdnd.rc
i4brunppp.8
i4brunppp.c
Makefile
README

$FreeBSD$

BEWARE: HIGHLY EXPERIMENTAL!
---------------------------

This program is used in conjunction with a isdnd.rc entry similar to

	regexpr = "ULPPP.*call active"   # look for matches in log messages
	regprog = i4brunppp              # execute program when match is found

this one (see also i4brunppp-isdnd.rc). 

i4brunppp _must_ be put into /etc/isdn!

When an active call is detected, isdnd fires off i4brunppp, which attaches
the rbch device used to stdin/stdout and then runs ppp which is given the
"-direct" command and the string "inc_rbchX" (where X is the i4brbch unit
number) as arguments.