From owner-freebsd-net Thu Nov 21 13:49:14 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 35EBA37B401 for ; Thu, 21 Nov 2002 13:49:13 -0800 (PST) Received: from vbook.express.ru (vbook.nc.express.ru [212.24.37.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33C1E43E97 for ; Thu, 21 Nov 2002 13:49:12 -0800 (PST) (envelope-from vova@sw.ru) Received: from vova by vbook.express.ru with local (Exim 4.10) id 18EzC6-0000aC-00; Fri, 22 Nov 2002 00:49:06 +0300 Subject: Re: mpd pptp freebsd <-> linux setup From: "Vladimir B. " Grebenschikov To: Archie Cobbs Cc: "net@freebsd.org" In-Reply-To: <200211212041.gALKfgJe067023@arch20m.dellroad.org> References: <200211212041.gALKfgJe067023@arch20m.dellroad.org> Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable Organization: TSB "Russian Express" Message-Id: <1037915344.914.18.camel@vbook> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.1.2 (Preview Release) Date: 22 Nov 2002 00:49:05 +0300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org =F7 Thu, 21.11.2002, =D7 23:41, Archie Cobbs =CE=C1=D0=C9=D3=C1=CC: > Vladimir B. Grebenschikov wrote: > > Session established, but then I am trying to ping other end I get: > >=20 > > [pptp] LCP: rec'd Protocol Reject #2 link 0 (Opened) > > [pptp] LCP: protocol 0x2145 was rejected > > [pptp] LCP: rec'd Protocol Reject #3 link 0 (Opened) > > [pptp] LCP: protocol 0x2145 was rejected >=20 > Looks like the other side is semi-broken. It's interpreting 0x21 0x45 > as a two byte protocol ID, whereas really it's a one byte compressed > protocol ID (0x0021) followed by the first byte of an IP packet (0x45). > That's clearly broken, because only the last byte of a protocol ID can > be odd. >=20 > Perhaps it's not expecting the 0x0021 to be protocol-compressed... > the MPPE RFC (3078) is silent on whether or not that's allowed. >=20 > Try the patch below and see if that helps. You might also report > the bug to whoever maintains the Linux PPP daemon. Yes, patch hepls ! Thank you very mutch. > -Archie >=20 > _________________________________________________________________________= _ > Archie Cobbs * Packet Design * http://www.packetdesign.co= m >=20 > --- sys/netgraph/ng_ppp.c.orig Thu Nov 21 12:39:06 2002 > +++ sys/netgraph/ng_ppp.c Thu Nov 21 12:39:26 2002 > @@ -744,7 +744,7 @@ > case HOOK_INDEX_VJC_VJIP: > if (priv->conf.enableCompression > && priv->hooks[HOOK_INDEX_COMPRESS] !=3D NULL) { > - if ((m =3D ng_ppp_addproto(m, proto, 1)) =3D=3D NULL) { > + if ((m =3D ng_ppp_addproto(m, proto, 0)) =3D=3D NULL) { > NG_FREE_META(meta); > return (ENOBUFS); > } --=20 Vladimir B. Grebenschikov TSB "Russian Express" To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message