]> git.ozlabs.org Git - ppp.git/commit
Multilink improvements. This involved moving some logic from the
authorPaul Mackerras <paulus@samba.org>
Fri, 12 Nov 2004 10:30:51 +0000 (10:30 +0000)
committerPaul Mackerras <paulus@samba.org>
Fri, 12 Nov 2004 10:30:51 +0000 (10:30 +0000)
commit637346ba24c289c5a0485651c05baa3f7c22a6b8
tree0a42e65a13991ba042d2ec4d2c4fba91e97cf718
parent0d3f05cc3d0a1cf631778296065ce9c158dd9c0e
Multilink improvements.  This involved moving some logic from the
main loop in main.c into link_required() and link_terminated() in
auth.c and adding code to multilink.c.  We now make a tdb entry
with the list of pppd pids for all the links in the bundle, and the
master pppd uses this to send a SIGHUP to each one when the bundle
is terminated.

We still have one pppd controlling both the bundle and the first link,
but when that link goes down, assuming that other links still exist,
the first link's pppd will clean up after that link but then stay
running until all the links have disconnected.  So it is possible to
lose the first link without losing the bundle.

This requires a small kernel patch which I will be sending to the
kernel maintainers shortly.
pppd/auth.c
pppd/lcp.c
pppd/main.c
pppd/multilink.c
pppd/pppd.h
pppd/sys-linux.c