Re: Informing PPP of Disconnect
Re: Informing PPP of Disconnect
- Subject: Re: Informing PPP of Disconnect
- From: Duane Murphy <email@hidden>
- Date: Tue, 14 May 2002 10:15:56 -0700
--- At Tue, 14 May 2002 12:03:29 -0500, Chris Edgington wrote:
>
Hello,
>
>
We've got a USB network driver and a pseudo-serial driver that
>
interfaces with PPP (Remote Access) for PPPoE on OS9. For the most part,
>
everything works fine, but there are a few situations that result in
>
some major support problems. One problem is that when the USB device is
>
unplugged, we are not sending any messages back to PPP to notify it
>
about the disconnecting. What exactly should be done here to properly
>
notify the upper layer protocols that the modem has been disconnected or
>
that the connection is no longer valid? Is there a specific TPI message
>
that needs generated from the pseudo-serial driver?
Here are two things you can do.
(1) Wait for the connection to time out. PPPoE sends echo's periodically
after a few (three as I recall) are not replied to the connection will be
closed by PPP.
(2) Send a PPP terminate up the stream to PPP.
We try and do a terminate if we can detect it early enough. Otherwise the
timeout works just fine.
...Duane Murphy
Efficient Networks, Inc.
<
http://www.efficient.com/>
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.