Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Oct 2017 09:45:11 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        Eugene Grosbein <eugen@grosbein.net>, FreeBSD-STABLE Mailing List <freebsd-stable@freebsd.org>
Subject:   Re: ppp routing bug ?
Message-ID:  <22c3cbd4-2a8e-884f-ec9b-cc4d12ff818f@sentex.net>
In-Reply-To: <59F1B650.5070107@grosbein.net>
References:  <bdb4d277-40ca-5a8e-f0e0-c1734a0c88c6@sentex.net> <a23ed8b3-1050-12d5-6a7c-1a1a0c174251@sentex.net> <59F1B650.5070107@grosbein.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 10/26/2017 6:17 AM, Eugene Grosbein wrote:
>>
>>
>> Any ideas ?
> 
> Are you sure that:

<are binaries in sync>

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:<UP,GATEWAY,DONE,STATIC>
locks:  inits:
sockaddrs: <DST,GATEWAY>
 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:<UP,DONE,STATIC>
locks:  inits: <mtu>
sockaddrs: <DST,GATEWAY,IFP,IFA>
 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:<UP,GATEWAY,HOST,DONE,STATIC>
locks:  inits:
sockaddrs: <DST,GATEWAY>
 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:<UP,DONE,STATIC>
locks:  inits: <mtu>
sockaddrs: <DST,GATEWAY,IFP,IFA>
 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:<UP,DONE,STATIC>
locks:  inits: <mtu>
sockaddrs: <DST,GATEWAY,NETMASK,IFP,IFA>
 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/



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?22c3cbd4-2a8e-884f-ec9b-cc4d12ff818f>