From owner-freebsd-net@FreeBSD.ORG Tue Mar 24 21:25:13 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 A84D910656BA; Tue, 24 Mar 2009 21:25:13 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 416A98FC26; Tue, 24 Mar 2009 21:25:12 +0000 (UTC) (envelope-from lists.br@gmail.com) Received: by yw-out-2324.google.com with SMTP id 5so1714020ywh.13 for ; Tue, 24 Mar 2009 14:25:12 -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=X+HO+VOsqjwWk/fPfQoibSp1959zyKO8LFFosRXy5Jc=; b=E5cho5h6krSZ9yFYaHsIKFHbk2BEzJ5Y3tzqlipBcmsCfMMt59kQdM0T2ZGGOLnnjq vhLRvg0DCRb1pIfYtAF3CzIYKmEVb+45bDol+sdM8G+TCuzrlITgrhCVG/bzfFr0HhYZ sUTughADFwWDUfWJGpSt50A5wOjSsKbfqepmY= 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=TK21Vnnt/v5MzUX0bWAL7i+yEhvSnLIAI7Vqy3F4q/+iu2iL2RyWs8jhqRaLKizoC/ 1ZnVfsyh30uz1Vf8SeOaL1hQXzXDiiJ++Usu/wMVMa3FMafPHFBGXF2OYPU30JqiKlBR zQ6Zv+g0T6yEWWIeklX0oY7b+zpNchytiLBng= Received: by 10.90.98.13 with SMTP id v13mr2059978agb.36.1237929912585; Tue, 24 Mar 2009 14:25:12 -0700 (PDT) Received: from adnote989 (189-18-124-154.dsl.telesp.net.br [189.18.124.154]) by mx.google.com with ESMTPS id 10sm11203230agd.24.2009.03.24.14.25.10 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 24 Mar 2009 14:25:12 -0700 (PDT) Message-ID: <0DC74661A0F84C5EA642A274E0CEF595@adnote989> From: "Luiz Otavio O Souza" To: "Li, Qing" References: <200903222114.PAA17884@lariat.net> <87153F88702C4FBCA3FC799082960C45@adnote989> <5E03C21CD6544D23B4E4A61E85C7E2C8@adnote989> Date: Tue, 24 Mar 2009 18:24:56 -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 21:51:02 +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 21:25:14 -0000 >> >> 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] ? >> > > Yes. The concept should be similar to the handling code for route > insertion > where one does, e.g.: > > route add -net a.b.c.d/24 -iface em0 > > Joe Marcus verified my patch in his environment. My suggestion is for > you > to try it out and see if that patch also fixes whatever problem that you > are > running into. > Qing, Sorry, but your patch doesn't fix the issue, everytime the route_UpdateMTU* is called the route is set to the ethernet interface using the gateway address instead of the correct tun interface. The patch in PR works exactly in that situation as confirmed by Brett. Thanks, Luiz * This will happen every time you provide ppp over ethernet (pppoe, vpns)