diff options
author | Brian Somers <brian@FreeBSD.org> | 1998-02-07 20:50:08 +0000 |
---|---|---|
committer | Brian Somers <brian@FreeBSD.org> | 1998-02-07 20:50:08 +0000 |
commit | 455aabc3f8ec34f01e0c38a52775d8fad9b7b55c (patch) | |
tree | 45f6a6d849c1bda358a206ec52688cd5bfaccfc6 /usr.sbin/ppp/link.c | |
parent | 83d1af558c8236383005372c97614d45a8da8f84 (diff) | |
download | src-455aabc3f8ec34f01e0c38a52775d8fad9b7b55c.tar.gz src-455aabc3f8ec34f01e0c38a52775d8fad9b7b55c.zip |
o Hook the FSMs into our bundle.
o The FSM layering is now more sane.
o Move a lot of the NCP stuff into our ipcpstate rather than having it
in the bundle, including control of the configured IP addresses. We
don't need hacks like the global `linkup' variable any more as the
FSM decides when our ppp.link* files get run. This is going to eventually
be configurable based on FSM events anyway.
o Fix a few inconsistencies when both sides require authentication.
o We now have "Ppp..." and "PPp" prompts, reflecting authentication
and network phase. We don't print loads of spurious prompts as we
change phases any more.
o Our phase is part of the bundle now.
o Fix a bug where the FSM wasn't calling LayerFinish.
o Close the FSM down correctly with a signal rather than slamming it
down as if the line was dropped (the undocumented ``down'' command
is still available though).
o Remove the forgotten `tunno' variable and fix references to it.
Notes
Notes:
svn path=/cvs2svn/branches/MP/; revision=33162
Diffstat (limited to 'usr.sbin/ppp/link.c')
-rw-r--r-- | usr.sbin/ppp/link.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/ppp/link.c b/usr.sbin/ppp/link.c index 3a2713ef018d..c34fbd1254c7 100644 --- a/usr.sbin/ppp/link.c +++ b/usr.sbin/ppp/link.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: link.c,v 1.1.2.2 1998/02/06 02:22:43 brian Exp $ + * $Id: link.c,v 1.1.2.3 1998/02/06 02:23:35 brian Exp $ * */ @@ -43,6 +43,7 @@ #include "loadalias.h" #include "vars.h" #include "link.h" +#include "bundle.h" void link_AddInOctets(struct link *l, int n) @@ -139,9 +140,10 @@ link_IsActive(struct link *l) } void -link_Close(struct link *l, int dedicated_force) +link_Close(struct link *l, struct bundle *bundle, int dedicated_force) { (*l->Close)(l, dedicated_force); + bundle_LinkLost(bundle, l); } void |