From owner-freebsd-net@FreeBSD.ORG Tue Mar 24 11:31:50 2009 Return-Path: Delivered-To: net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 36E4A106566C for ; Tue, 24 Mar 2009 11:31:50 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from mail-gx0-f224.google.com (mail-gx0-f224.google.com [209.85.217.224]) by mx1.freebsd.org (Postfix) with ESMTP id C412A8FC22 for ; Tue, 24 Mar 2009 11:31:49 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by gxk24 with SMTP id 24so8626501gxk.19 for ; Tue, 24 Mar 2009 04:31:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:cc :references:subject:date:mime-version:content-type :content-transfer-encoding:x-priority:x-msmail-priority:x-mailer :x-mimeole; bh=omiEEoMr0M/Fp7Tung/0wslPBBjRbPhyYsAp4MDyIdE=; b=J4WFEasGPLSNovfzjIJRt0KrRKC5mh6NaQLqgYb9qPCRrqZobOp3rJM+xPp5JGRitl HW3dh1fEmuac7ztM2PseKx9bHqu9o0/Rn1TmhnIulIL9QSenibHTDnSs9BUKzRhKXY81 CJPVRIiAbrI9bhkfsmIZSG2Uw9y0QvuRuI1KY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:cc:references:subject:date:mime-version :content-type:content-transfer-encoding:x-priority:x-msmail-priority :x-mailer:x-mimeole; b=HO4bGW3bvkLMWrqw6/rthH+bECrKG+IttSY7ZIsdY6vwix73H/LzvivHWWLVtUy0JG k1rC1VEsCku2wQoTjislWvNdcBxxmtfuGUcodEGsNGL8jrLvg69x19NI5ZTm0ICLMKiQ NSkuu1pcazE6I4gR7PXD3WMTmDOfM+s0w8Y0Y= Received: by 10.90.66.10 with SMTP id o10mr3481202aga.87.1237894308912; Tue, 24 Mar 2009 04:31:48 -0700 (PDT) Received: from adnote989 (189-18-124-154.dsl.telesp.net.br [189.18.124.154]) by mx.google.com with ESMTPS id 38sm10140348aga.29.2009.03.24.04.31.46 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 24 Mar 2009 04:31:48 -0700 (PDT) Message-ID: <5E03C21CD6544D23B4E4A61E85C7E2C8@adnote989> From: "Luiz Otavio O Souza" To: "Li, Qing" References: <200903222114.PAA17884@lariat.net> <87153F88702C4FBCA3FC799082960C45@adnote989> Date: Tue, 24 Mar 2009 08:31:35 -0300 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.5512 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Mailman-Approved-At: Tue, 24 Mar 2009 11:33:50 +0000 Cc: Brett Glass , Qing Li , net@freebsd.org Subject: Re: Problems with inward PPTP tunnel X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Mar 2009 11:31:50 -0000 > Hi, > > I read over your patch and I don't think you need to > change the definition of rt_Update() to fix this bug. > > Have you read my patch committed to head/user.sbin/ppp/route.c > on 12/18/2008? svn r186308, cvs r1.96. > > Please take a look. > > Thanks, > > -- Qing Hi Qing, Yes i've read your patch, but i don't understand what you are meaning... and yes, changing the definition of rt_Update is not my first intention, but it is the way i've found to fix this. Backing to the patch... The rt_Update need the ifp and ifa information to correctly update the route, and this is available only in route_UpdateMTU (wich read the current route table). You are suggesting that this information could be found at sa[RTAX_GATEWAY] (if sa[RTAX_GATEWAY]->sa_family == AF_LINK) ? And i don't need to pass the sa[RTAX_IFP] and sa[RTAX_IFA] ? Well, i really don't remember, but i'll check and post an update later. Thanks, Luiz