From owner-freebsd-net Thu Nov 21 12:45: 6 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 41DC337B401 for ; Thu, 21 Nov 2002 12:45:05 -0800 (PST) Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6C7C343E9E for ; Thu, 21 Nov 2002 12:45:04 -0800 (PST) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id MAA84142; Thu, 21 Nov 2002 12:41:43 -0800 (PST) Received: from arch20m.dellroad.org (localhost [127.0.0.1]) by arch20m.dellroad.org (8.12.6/8.12.6) with ESMTP id gALKfgOS067024; Thu, 21 Nov 2002 12:41:43 -0800 (PST) (envelope-from archie@arch20m.dellroad.org) Received: (from archie@localhost) by arch20m.dellroad.org (8.12.6/8.12.6/Submit) id gALKfgJe067023; Thu, 21 Nov 2002 12:41:42 -0800 (PST) From: Archie Cobbs Message-Id: <200211212041.gALKfgJe067023@arch20m.dellroad.org> Subject: Re: mpd pptp freebsd <-> linux setup In-Reply-To: <1037910248.914.8.camel@vbook> To: "Vladimir B. Grebenschikov" Date: Thu, 21 Nov 2002 12:41:42 -0800 (PST) Cc: net@freebsd.org X-Mailer: ELM [version 2.4ME+ PL99b (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII 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 Vladimir B. Grebenschikov wrote: > Session established, but then I am trying to ping other end I get: > > [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 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. Perhaps it's not expecting the 0x0021 to be protocol-compressed... the MPPE RFC (3078) is silent on whether or not that's allowed. Try the patch below and see if that helps. You might also report the bug to whoever maintains the Linux PPP daemon. -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com --- 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] != NULL) { - if ((m = ng_ppp_addproto(m, proto, 1)) == NULL) { + if ((m = ng_ppp_addproto(m, proto, 0)) == NULL) { NG_FREE_META(meta); return (ENOBUFS); } To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message