[arachne] Re: Ray's Alt-D
- From: "Ray Andrews" <randrews@xxxxxxxxx>
- To: arachne@xxxxxxxxxxxxx
- Date: Tue, 22 Jul 2008 13:15:47 -0800
Arachne at FreeLists---The Arachne Fan Club!
On Tue, 22 Jul 2008 10:55:00 +0000, Udo Kuhnt wrote:
Hi Udo,
> I may be mistaken, but I think this approach is bound to fail with
> packet drivers that connect and disconnect on their own, like the PPPoE
> driver PEPA.
> How would your core recognize if the packet driver has connected if it
> is installed all the time? Also, please note that with PPPoE, you need
> to load *two* packet drivers, one for the networking card, and one that
> handles the PPPoE protocol. Chances are that your core might "sniff out"
> the wrong one.
I can hardly even comment on this subject because I know so little about
it. All I can say is that Andrej made the packet driver sniffer
that I use and it works with dialup and also for Ron and Glenn with
cable. Here's the code:
{
int ArachneTCPIP(int vector); // Defined in atcpip.c
int vector = 0x60;
// Andrej's method :
for(; vector < 0x81; vector++)
// Here's the guts of it:
if(! strcmp((char *)getvect(vector) + 3, "PKT DRVR"))
break; // pkt driver found.
// We have a pkt driver or dial was requested so access error msgs.
if((vector < 0x81 || arg2 == 'd')
//1h: NB don't show error msg when running setup if online, as with
// 'permanent' connections like cable modems, tx. Glenn and Ron.
&& arg1 != 's'
&& ! ArachneTCPIP(vector)) // initialize TCP/IP.
GoBack(); // In case of user ESC, just go back to last page :-)
}
At least for lsppp it works well, instead of relying on the presence
of ppp.log, it tests for the driver directly. However, there may
indeed be situations where this method fails, I have no idea, we'd
need someone to try it and then deal with whatever was learned.
Regards,
Ray Andrews
.
-- Arachne;A4d;1p
Arachne at FreeLists
-- Arachne, The Premier GPL Web Browser/Suite for DOS --
Other related posts: