Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Problem with PPP on FreeBSD 2.0

1 view
Skip to first unread message

Keith Tomkins

unread,
Mar 7, 1995, 12:46:45 AM3/7/95
to
I have been having some problems with PPP in FreeBSD 2.0. I make the
connection with kermit and start the PPP daemon. It runs OK for a while
and then it resets the system. Anybody have any ideas? Also, how can I quit
kermit without hanging up the line? I currently do a ps and then kill the
process.

Thanks
Keith

*****************************************************************************
Keith A. Tomkins * What disclaimer?
katm...@netcom.com * Nobody listens to me anyway.
*****************************************************************************

Daniel Ortmann

unread,
Mar 9, 1995, 10:06:39 PM3/9/95
to
In article <katmanduD...@netcom.com>,

Keith Tomkins <katm...@netcom.com> wrote:
> I have been having some problems with PPP in FreeBSD 2.0. I make the
>connection with kermit and start the PPP daemon. It runs OK for a while
>and then it resets the system. Anybody have any ideas? Also, how can I quit
>kermit without hanging up the line? I currently do a ps and then kill the
>process.

/sys/net/if_ppp.c needs some initialization:

*** 1.1 1994/12/22 01:06:35
--- if_ppp.c 1994/12/22 01:08:30
***************
*** 430,439 ****
--- 430,440 ----
MGET(m, M_WAIT, MT_DATA);
if ((*mp = m) == NULL) {
m_freem(m0);
return (ENOBUFS);
}
+ m->m_len = 0; /* <<<=== */
if (uio->uio_resid >= MCLBYTES / 2)
MCLGET(m, M_DONTWAIT);
len = M_TRAILINGSPACE(m);
if (len > uio->uio_resid)
len = uio->uio_resid;

Lee Feistel

unread,
Mar 14, 1995, 11:54:42 AM3/14/95
to
Daniel Ortmann (ort...@plains.NoDak.edu) wrote:
: In article <katmanduD...@netcom.com>,

pierre revel

unread,
Mar 15, 1995, 7:57:47 PM3/15/95
to
In article <katmanduD...@netcom.com>, katm...@netcom.com (Keith Tomkins) says:
>
> I have been having some problems with PPP in FreeBSD 2.0. I make the
>connection with kermit and start the PPP daemon. It runs OK for a while
>and then it resets the system. Anybody have any ideas? Also, how can I quit
>kermit without hanging up the line? I currently do a ps and then kill the
>process.

You are not alone in the world :-)

I have no problem with PPPD running alone, but when I'am using TCP/IP
(with ftp by ethernet, or with other PPP by modem) the connection make
the system reboot (Fatal trap 12 : Page fault in kernel mode).

I think that our problems are similar, and will send you any information
if I find the solution ! (I'm trying to make a local dial-up server with
2 US Robotics V32bis, something like a internet-style 2-node BBS, for
ftp and httpd)

It's the only bug I've seen at this time. Maybe it's a good idea to post
an E-mail to the authors of pppd...

Pierre Revel - France



pierre revel

unread,
Mar 16, 1995, 10:58:51 AM3/16/95
to
In article <D57FB...@ns1.nodak.edu>,
ort...@plains.NoDak.edu (Daniel Ortmann) says:

>/sys/net/if_ppp.c needs some initialization:
>
>
> return (ENOBUFS);


> }
>
> m->m_len = 0; /* <<<=== */
>
> if (uio->uio_resid >= MCLBYTES / 2)
>

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

Thanks a lot for the patch ! Now my FreeBSD system dials-up 4 lines
using PPPD + FTPD + HTTPD, and 4 US Robotics internal Sportster V32bis.

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

Pierre Revel

fer...@eden.com

unread,
Mar 16, 1995, 3:33:50 PM3/16/95
to
In <3k82eb$d...@sct1.sct.fr>, pfr...@World-net.sct.fr (pierre revel) writes:
>
>You are not alone in the world :-)
>
>I have no problem with PPPD running alone, but when I'am using TCP/IP
>(with ftp by ethernet, or with other PPP by modem) the connection make
>the system reboot (Fatal trap 12 : Page fault in kernel mode).
>
>I think that our problems are similar, and will send you any information
>if I find the solution ! (I'm trying to make a local dial-up server with
>2 US Robotics V32bis, something like a internet-style 2-node BBS, for
>ftp and httpd)
>
>It's the only bug I've seen at this time. Maybe it's a good idea to post
>an E-mail to the authors of pppd...
>
>Pierre Revel - France
>

Yeah, the exact same thing is happening to me too. I am trying to run a
FreeBSD 2.0 machine as a ppp server. It is connected to an ethernet lan
(attached to the internet) and has two US Robotics modems being used
for the ppp links. It seems to work fine about 50% of the time, and once
a connection has been established it seems to work until the user hangs
up. It only crashes when the user first attempts to execute pppd. When
it traps it is always a fatal trap 12 in pppd during the initial negotiation.

Lee Feistel

pierre revel

unread,
Mar 23, 1995, 2:45:27 PM3/23/95
to

>Yeah, the exact same thing is happening to me too. I am trying to run a

Finally, I received the solution from the net.
You have to recompile your kernel and apply a (one line) patch

Look for the file /usr/src/sys/net/if_ppp.c
Look for the code :

m_freem(m0);
return(ENOBUFS);
}
m->m_len=0; /* ADD THIS LINE ! */
if (uio->uio_resid>=MCLBYTES/2)
MCLGET(m,M_DONTWAIT);

Try it ! I have no more problems and my computer drives 4 modems.
Best Regards,

---------------------------------
Pierre Revel - Semaphore - France
---------------------------------

0 new messages