Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Apr 2017 01:42:23 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 218517] ppp fails adding route with error Value too large to be stored in data type
Message-ID:  <bug-218517-8@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D218517

            Bug ID: 218517
           Summary: ppp fails adding route with error Value too large to
                    be stored in data type
           Product: Base System
           Version: 11.0-RELEASE
          Hardware: i386
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: netsick@gmail.com

I've recently upgraded from FreeBSD 9.1 to FreeBSD 11.0 and took my FreeBSD=
 9.1
ppp.conf and relevant rc.conf settings and used it in FreeBSD 11.0

When connecting to my ADSL ISP via /usr/sbin/ppp using pppoe the "add defau=
lt
HISADDR" setting is not adding the route and failing with error message..

Warning: Add route failed: 0.0.0.0: errno: Value too large to be stored in =
data
type

The only way I can get the route to add correctly is to use the following in
/etc/ppp/ppp.linkup

 shell route del default
 shell route add default HISADDR


<pre>
Relevant entries in rc.conf

network_interfaces=3D"em0 lo0"
ifconfig_em0=3D"inet 10.0.0.254 netmask 255.255.255.0"
gateway_enable=3D"yes"
ppp_enable=3D"YES"
ppp_mode=3D"ddial"
ppp_nat=3D"NO"
ppp_profile=3D"iinet"
</pre>

<pre>
ppp.conf

default:
 set log Chat Connect Command tun Phase Warning IPCP CCP IPCP LQM Error Ale=
rt
 ident user-ppp VERSION (built COMPILATIONDATE)
 set mru 1492
 set mtu 1492
 enable lqr
 enable echo
 #enable dns=20
 set timeout 0
 set redial 0 0
 nat enable no

iinet:
 set device PPPoE:em0:iinet
 set speed sync
 set ctsrts off
 set authname xxxxx@xxxx.net.au
 set authkey xxxxxxxx
 set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
 add default HISADDR=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
</pre>

<pre>
uname -a=20

FreeBSD crusty 11.0-RELEASE-p1 FreeBSD 11.0-RELEASE-p1 #2: Mon Apr  3 10:59=
:13
AEST 2017     root@crusty:/usr/obj/usr/src/sys/CRUSTY  i386
</pre>

<pre>
custom kernel options

include PAE

device pf
device pflog
device pfsync
options ALTQ
options ALTQ_CBQ
options ALTQ_RED
options ALTQ_RIO
options ALTQ_HFSC
options ALTQ_PRIQ
options ALTQ_NOPCC

options IPFIREWALL
options IPDIVERT
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_VERBOSE

options IPFILTER
options DUMMYNET
options HZ=3D1000=20=20=20=20

options         NETGRAPH
options         NETGRAPH_ETHER
options         NETGRAPH_PPPOE
options         NETGRAPH_SOCKET
</pre>

<pre>
Routing table

Internet:
Destination        Gateway            Flags     Netif Expire
default            150.101.32.92      US         tun0
10.0.0.0/24        link#1             U           em0
10.0.0.254         link#1             UHS         lo0
58.6.220.252       link#5             UHS         lo0
127.0.0.1          link#2             UH          lo0
150.101.32.92      link#5             UHS        tun0

Internet6:
Destination                       Gateway                       Flags     N=
etif
Expire
::/96                             ::1                           UGRS       =
 lo0
::1                               link#2                        UH         =
 lo0
::ffff:0.0.0.0/96                 ::1                           UGRS       =
 lo0
fe80::/10                         ::1                           UGRS       =
 lo0
fe80::%lo0/64                     link#2                        U          =
 lo0
fe80::1%lo0                       link#2                        UHS        =
 lo0
ff02::/16                         ::1                           UGRS       =
 lo0
ff02::%tun0/32                    fe80::223:24ff:fe92:8e73%tun0 UGS        =
tun0
</pre>

<pre>
/var/log/ppp.log

Apr  9 10:16:10 crusty ppp[2690]: tun0: Phase: PPP Started (ddial mode).
Apr  9 10:16:10 crusty ppp[2690]: tun0: Phase: bundle: Establish
Apr  9 10:16:10 crusty ppp[2690]: tun0: Phase: deflink: closed -> opening
Apr  9 10:16:10 crusty ppp[2690]: tun0: Phase: deflink: Connected!
Apr  9 10:16:10 crusty ppp[2690]: tun0: Phase: deflink: opening -> dial
Apr  9 10:16:10 crusty ppp[2690]: tun0: Phase: deflink: dial -> carrier
Apr  9 10:16:11 crusty ppp[2690]: tun0: Phase: Received NGM_PPPOE_ACNAME (h=
ook
"qcz5-charlotte")
Apr  9 10:16:11 crusty ppp[2690]: tun0: Phase: Received NGM_PPPOE_SESSIONID
Apr  9 10:16:11 crusty ppp[2690]: tun0: Phase: Received NGM_PPPOE_SUCCESS
Apr  9 10:16:11 crusty ppp[2690]: tun0: Phase: deflink: carrier -> login
Apr  9 10:16:11 crusty ppp[2690]: tun0: Phase: deflink: login -> lcp
Apr  9 10:16:13 crusty ppp[2690]: tun0: LQM: deflink: Will send LQR every 3=
0.00
secs
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: bundle: Authenticate
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: deflink: his =3D CHAP 0x05, =
mine =3D
none
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: Chap Input: CHALLENGE (16 by=
tes
from qcz5-charlotte)
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: Chap Output: RESPONSE
(xxx@xxx.net.au)
Apr  9 10:16:13 crusty ppp[2690]: tun0: LQM: deflink: Will send LQR every 3=
0.00
secs
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: deflink: his =3D CHAP 0x05, =
mine =3D
none
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: Chap Input: CHALLENGE (16 by=
tes
from bng1.bne4)
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: Chap Output: RESPONSE
(xxx@xxx.net.au)
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: Chap Input: SUCCESS (CHAP
authentication success, unit 6596)
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: Using trigger address 0.0.0.0
Apr  9 10:16:13 crusty ppp[2690]: tun0: CCP: FSM: Using "deflink" as a
transport
Apr  9 10:16:13 crusty ppp[2690]: tun0: CCP: deflink: State change Initial =
-->
Closed
Apr  9 10:16:13 crusty ppp[2690]: tun0: CCP: deflink: LayerStart.
Apr  9 10:16:13 crusty ppp[2690]: tun0: CCP: MPPE: Not usable without CHAP81
Apr  9 10:16:13 crusty ppp[2690]: tun0: CCP: deflink: SendConfigReq(1) stat=
e =3D
Closed
Apr  9 10:16:13 crusty ppp[2690]: tun0: CCP:  DEFLATE[4] win 15
Apr  9 10:16:13 crusty ppp[2690]: tun0: CCP:  PRED1[2]=20
Apr  9 10:16:13 crusty ppp[2690]: tun0: CCP: deflink: State change Closed -=
->
Req-Sent
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: deflink: lcp -> open
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: bundle: Network
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: FSM: Using "deflink" as a
transport
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: State change Initial=
 -->
Closed
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: LayerStart.
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: SendConfigReq(1) sta=
te =3D
Closed
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP:  IPADDR[6] 0.0.0.0
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with
slot compression
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: State change Closed =
-->
Req-Sent
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: RecvConfigReq(29) st=
ate
=3D Req-Sent
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP:  IPADDR[6] 150.101.32.92
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: SendConfigAck(29) st=
ate
=3D Req-Sent
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP:  IPADDR[6] 150.101.32.92
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: State change Req-Sent
--> Ack-Sent
Apr  9 10:16:13 crusty ppp[2690]: tun0: CCP: deflink: State change Req-Sent=
 -->
Stopped
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: RecvConfigRej(1) sta=
te =3D
Ack-Sent
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP:  COMPPROTO[6] 16 VJ slots with
slot compression
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: SendConfigReq(2) sta=
te =3D
Ack-Sent
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP:  IPADDR[6] 0.0.0.0
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: deflink: IPV6CP protocol rej=
ect
closes IPV6CP !
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: RecvConfigNak(2) sta=
te =3D
Ack-Sent
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP:  IPADDR[6] 58.6.220.252
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP:  IPADDR[6] changing address:
0.0.0.0  --> 58.6.220.252
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: SendConfigReq(3) sta=
te =3D
Ack-Sent
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP:  IPADDR[6] 58.6.220.252
Apr  9 10:16:13 crusty ppp[2690]: tun0: Phase: deflink: IPV6CP protocol rej=
ect
closes IPV6CP !
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: RecvConfigAck(3) sta=
te =3D
Ack-Sent
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP:  IPADDR[6] 58.6.220.252
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: State change Ack-Sent
--> Opened
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: deflink: LayerUp.
Apr  9 10:16:13 crusty ppp[2690]: tun0: IPCP: myaddr 58.6.220.252 hisaddr =
=3D
150.101.32.92
Apr  9 10:16:13 crusty ppp[2690]: tun0: Warning: Add route failed: 0.0.0.0:
errno: Value too large to be stored in data type
Apr  9 10:16:13 crusty ppp[2690]: tun0: Command: iinet: add default HISADDR
Apr  9 10:16:13 crusty ppp[2690]: tun0: Warning: Add route failed: 0.0.0.0:
errno: Value too large to be stored in data type
Apr  9 10:16:13 crusty ppp[2690]: tun0: Command: iinet: shell route del def=
ault
Apr  9 10:16:13 crusty ppp[2690]: tun0: Command: iinet: shell route add def=
ault
HISADDR
Apr  9 10:16:13 crusty ppp[2690]: tun0: Warning: ff02::: Change route faile=
d:
errno: Value too large to be stored in data type
Apr  9 10:16:16 crusty ppp[2690]: tun0: Phase: deflink: IPV6CP protocol rej=
ect
closes IPV6CP !
</pre>

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-218517-8>