Date: Fri, 6 Jun 1997 15:28:46 +0000 () From: "Lenzi, Sergio" <lenzi@bsi.com.br> To: freebsd-hackers@freebsd.org Subject: pppd problem when using natd (cont.). Message-ID: <Pine.BSF.3.91.970606152339.341A-100000@sergio>
index | next in thread | raw e-mail
The panic on module ppp seems to be in pppfcs call.
The system panics while using natd (network address translator) and pppd
(line 570 of file /usr/src/sys/net/ppp_tty.c).
It arises when ppp_fcs receive a len less than zero.
static u_short
pppfcs(fcs, cp, len)
register u_short fcs;
register u_char *cp;
register int len;
{
while (len--)
fcs = PPP_FCS(fcs, *cp++);
return (fcs);
}
Can someone please guide me what to do if this function receives
len < 0 ???
In a test with a printf... it receives len = -17.
Thanks for any help.
Sergio Lenzi.
Unix consult.
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.91.970606152339.341A-100000>
