From owner-freebsd-net Thu Mar 11 8: 3:15 1999 Delivered-To: freebsd-net@freebsd.org Received: from hugin.odin-corporation.com (fredriks-1.pr.mcs.net [205.164.50.241]) by hub.freebsd.org (Postfix) with ESMTP id EBC47153E1 for ; Thu, 11 Mar 1999 08:03:11 -0800 (PST) (envelope-from lars@odin-corporation.com) Received: from odin-corporation.com (localhost [127.0.0.1]) by hugin.odin-corporation.com (8.9.2/8.9.1) with ESMTP id KAA83303; Thu, 11 Mar 1999 10:01:57 -0600 (CST) (envelope-from lars@odin-corporation.com) Message-ID: <36E7E8F4.F2925E18@odin-corporation.com> Date: Thu, 11 Mar 1999 10:01:57 -0600 From: Lars Fredriksen Organization: Odin Corporation X-Mailer: Mozilla 4.5 [en] (X11; I; FreeBSD 4.0-CURRENT i386) X-Accept-Language: no, en MIME-Version: 1.0 To: paulo@nlink.com.br, freebsd-net@freebsd.org Subject: pppd and missing UI [was Problems with Trumpet winsock] Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hi, I am seeing the same problem if I use the current pppd (this is on current also) when I try to connect with my ISP. However using a pppd from Feb last year: fredriks-1# ident /usr/sbin/pppd /usr/sbin/pppd: $Id: main.c,v 1.15 1997/10/10 09:28:37 peter Exp $ $Id: magic.c,v 1.6 1997/08/19 17:52:42 peter Exp $ $Id: fsm.c,v 1.7 1997/08/19 17:52:37 peter Exp $ $Id: lcp.c,v 1.7 1997/08/19 17:52:40 peter Exp $ $Id: ipcp.c,v 1.10 1997/08/22 12:03:54 peter Exp $ $Id: upap.c,v 1.7 1997/08/19 17:52:47 peter Exp $ $Id: chap.c,v 1.8 1997/08/19 17:52:34 peter Exp $ $Id: ccp.c,v 1.7 1997/08/19 17:52:33 peter Exp $ $Id: demand.c,v 1.3 1997/08/19 17:52:36 peter Exp $ $Id: auth.c,v 1.21 1997/12/13 05:27:29 jdp Exp $ $Id: options.c,v 1.16 1997/10/10 09:28:37 peter Exp $ $Id: sys-bsd.c,v 1.12 1998/01/16 17:38:53 bde Exp $ $Id: cbcp.c,v 1.3 1997/08/19 17:52:31 peter Exp $ it works fine. If you dump the packet as it comes in: ppp0 input: ff 03 00 21 21 45 45 00 00 00 00 fa fa dd dd d0 You see the 0xff wich is the broadcast address, the 0x3 wich is the UI, the compression flag 0x0 and the protocol identifier 0x21. It appears that somehow the pppinput() routine gets its sc_ilen reset to 1 for some reason sometime after it has already processed the ppp header. I don't know yet as to why the older pppd doesn't trigger the bug. Lars To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message