Seen stuff like this before ?
pppd[9099]: Protocol-Reject for unsupported protocol 0x7
pppd[9099]: Protocol-Reject for unsupported protocol 0x4272
pppd[9099]: Protocol-Reject for unsupported protocol 0xd
pppd[9099]: Protocol-Reject for unsupported protocol 0x706f


Hi there peoples ,

Ive knoticed a but of an odd problem and have discussed it with a feew
people that have confirmed its not just me , i dont know if theres a fix
to this but if there is i would love to hear about it .

The problem begins with Shutdown messages using an inbuilt wall function
then I knoticed that Wall did it as well ...
Here is what happens :
User logs on and starts pppd via our script , no problems there the mesg
and biff are set to "no" when the ppp script runs ,
when ever a Shutdown message or wall message is broadcast on the server
the ppp connections get a whole buch of errors about
unreconised protocol , I worked out that this occured when ever there
was a message that was not supose to be sent to the tty
running pppd but was , it seems that Wall when run as superuser will
override the mesg = n and thus the ppp gets some asci that it has no
idea what to do with , ive tried some experments where ive done a large
"wall" message and it has intrupted the connection .

Ow and before i get comments about why would you care if your shutting
down ... well a shutdown message doesnt mean the  server will shutdown
just starts or stops a process to shutdown in my case Ive got nearly
10hrs on my UPS , ( slightly hardware hacked  one) , so its rare that
the server actualy gets to shutdown .

Anyways here is another email with regards to the same send by one of
the guys i was chatting with about the subject.


Regards
Sean Benton



Subject:
        'wall' from root user interferes with pppd
   Date:
        Mon, 11 Jan 1999 05:03:45 -0600
   From:
        Stan Brooks <[EMAIL PROTECTED]>
     To:
        [EMAIL PROTECTED]
    CC:
        [EMAIL PROTECTED], [EMAIL PROTECTED]




Dear sirs,

Re: pppd-2.2.0 and ppp-2.3.5, sysvinit-2.74, OS:linux

Someone ([EMAIL PROTECTED]) on IRCnet #linux brought to my attention
the following minor(?) problem re interference between wall/shutdown
and pppd: that a wall message coming from the root user is sent to
the /dev/ttyS* modem device attached to the pppd process.

Looking into the sysvinit-2.74 sources, I find the following test
(in dowall.c) for which processes to send the shutdown or wall
message to...


[cut]
  while ((utmp = getutent()) != NULL) {
    if(utmp->ut_type != USER_PROCESS ||            <---
       utmp->ut_user[0] == 0) continue;            <---
    if ((p = strrchr(utmp->ut_line, '/')) == 0)
      p = utmp->ut_line;
    sprintf(term, "/dev/%s", p);
[cut]

which accepts the pppd process, due to the way pppd fills in the
utmp fields in sys-linux.c.

This was a problem for louie because he was running a linux-based ISP,
and delayed shutdown for UPS kills his dialins at the beginning of
the several-hour battery backup time.

I'm not sufficiently experienced in utmp matters to know whether the
better fix would be to alter pppd's utmp behavior or that of sysvinit.
It seems undesirable to send a wall message to a device which will not
result in the message being viewable by a human.

In any event, thanks for your work on the ppp code for linux (otherwise
I'd probably be sending this message from win** :)

--
Stan Brooks







 --------------------------------------------------------------------------

                         Benton Global Services Network
         Web Http://www.bgsn.net/      Email mailto:[EMAIL PROTECTED]
                       Po Box 20 , Bayswater Victoria 3152
       Ph. (03) 9720 5829  Fax. (03) 9720 0829  Data (03) 9761 5800
 --------------------------------------------------------------------------




-
To unsubscribe from this list: send the line "unsubscribe linux-ppp" in
the body of a message to [EMAIL PROTECTED]

Reply via email to