From owner-freebsd-stable@freebsd.org Thu Oct 26 13:45:17 2017 Return-Path: Delivered-To: freebsd-stable@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0620EE4A06D for ; Thu, 26 Oct 2017 13:45:17 +0000 (UTC) (envelope-from mike@sentex.net) Received: from smarthost2.sentex.ca (smarthost2.sentex.ca [IPv6:2607:f3e0:80:80::2]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "smarthost.sentex.ca", Issuer "smarthost.sentex.ca" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 7985B7EC7D for ; Thu, 26 Oct 2017 13:45:15 +0000 (UTC) (envelope-from mike@sentex.net) Received: from lava.sentex.ca (lava.sentex.ca [IPv6:2607:f3e0:0:5::11]) by smarthost2.sentex.ca (8.15.2/8.15.2) with ESMTPS id v9QDjEoV020665 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Thu, 26 Oct 2017 09:45:14 -0400 (EDT) (envelope-from mike@sentex.net) Received: from [192.168.43.26] (saphire3.sentex.ca [192.168.43.26]) by lava.sentex.ca (8.15.2/8.15.2) with ESMTP id v9QDjBY9025591; Thu, 26 Oct 2017 09:45:11 -0400 (EDT) (envelope-from mike@sentex.net) Subject: Re: ppp routing bug ? To: Eugene Grosbein , FreeBSD-STABLE Mailing List References: <59F1B650.5070107@grosbein.net> From: Mike Tancsa Organization: Sentex Communications Message-ID: <22c3cbd4-2a8e-884f-ec9b-cc4d12ff818f@sentex.net> Date: Thu, 26 Oct 2017 09:45:11 -0400 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <59F1B650.5070107@grosbein.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.78 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Oct 2017 13:45:17 -0000 On 10/26/2017 6:17 AM, Eugene Grosbein wrote: >> >> >> Any ideas ? > > Are you sure that: Hi, Yes I have rebuilt all a number of times. Also, this is i386. I think I will try and build and AMD64 image to see if it follows there too. > > Try using "route -n monitor" in the background to see what "ppp" really sends to the kernel. > Try using "mpd5" instead of "ppp" to make PPPoE connection and see if it runs into same problem. It seems to be routes that are /32s that are at issue. If I have a /30, the route gets installed correctly. In ppp.linkup if I put pppoe: add 192.168.134.2/32 HISADDR add 192.168.134.4/30 HISADDR ! /sbin/route add 192.168.135.0/24 HISADDR ! /sbin/route add 192.168.136.1 HISADDR ! /sbin/route add 192.168.137.1/32 HISADDR The first route does not get installed, the rest do. 0.0.0.0&0x17040000 64.7.128.7 US 0 1492 tun0 192.168.134.4/30 64.7.128.7 US 0 1492 tun0 192.168.135.0/24 64.7.128.7 US 0 1492 tun0 192.168.136.1 64.7.128.7 UHS 0 1492 tun0 192.168.137.1/32 64.7.128.7 US 0 1492 tun0 route monitor shows two statements per entry. comparing 134.2 and 137.1. the HOST flag is not set for the bogus entry. got message of size 124 on Thu Oct 26 09:37:40 2017 RTM_ADD: Add Route: len 124, pid: 23810, seq 4, errno 0, flags: locks: inits: sockaddrs: 192.168.134.2 64.7.128.7 got message of size 196 on Thu Oct 26 09:37:40 2017 RTM_CHANGE: Change Metrics or flags: len 196, pid: 23810, seq 8, errno 0, flags: locks: inits: sockaddrs: 192.168.134.2 64.7.128.7 tun0 98.159.244.185 vs got message of size 124 on Thu Oct 26 09:37:40 2017 RTM_ADD: Add Route: len 124, pid: 24236, seq 1, errno 0, flags: locks: inits: sockaddrs: 192.168.136.1 64.7.128.7 got message of size 196 on Thu Oct 26 09:37:40 2017 RTM_CHANGE: Change Metrics or flags: len 196, pid: 23810, seq 11, errno 0, flags: locks: inits: sockaddrs: 192.168.136.1 64.7.128.7 tun0 98.159.244.185 got message of size 212 on Thu Oct 26 09:37:40 2017 RTM_CHANGE: Change Metrics or flags: len 212, pid: 23810, seq 12, errno 0, flags: locks: inits: sockaddrs: 192.168.137.1 64.7.128.7 255.255.255.255 tun0 98.159.244.185 -- ------------------- Mike Tancsa, tel +1 519 651 3400 Sentex Communications, mike@sentex.net Providing Internet services since 1994 www.sentex.net Cambridge, Ontario Canada http://www.tancsa.com/