> With some frequency, hanging up fails to remove the epppd driver from
> memory for one reason or another. In this regard, the batch file I use to
> dial the internet and load epppd could sorely use a way to test whether
> epppd is already, or still in memory before it proceeds.
>
> However the best I can do write now is to check if the variable,
> wattcp.cfg is set -- something I do when I load epppd. I suppose I
> could do some horribly inelegant thing like dump the output of the
> mem command to a file and then grep the file for an ``epppd'' entry.
>
> Short of that, does any one know of a better way to check if epppd is
> already in memory, before trying to load it?

Check for Packer driver presence at "intno" Interrupt number:

static char Pkt_sig[] = "PKT DRVR";

:
.


int PD_test_for_pd(int intno)
{
 void interrupt (*drvvec)();
 char *prt;
 char far *prt2;
 int i, found = 1;

 drvvec = getvect(intno);
 prt2=MK_FP( FP_SEG(drvvec),FP_OFF(drvvec)+3 );
 for (i=0; i<=8; i++) {
     if ( Pkt_sig[i] != prt2[i] ) found = 0;
 }
 return found;
}

>
> To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with
> unsubscribe SURVPC in the body of the message.
> Also, trim this footer from any quoted replies.
> More info can be found at;
> http://www.softcon.com/archives/SURVPC.html
>

To unsubscribe from SURVPC send a message to [EMAIL PROTECTED] with 
unsubscribe SURVPC in the body of the message.
Also, trim this footer from any quoted replies.
More info can be found at;
http://www.softcon.com/archives/SURVPC.html

Reply via email to