Modify

Opened 3 years ago

Last modified 3 years ago

#18199 new defect

interchange values "lcp-echo-interval" and "lcp-echo-failure"

Reported by: casper.by@… Owned by: developers
Priority: low Milestone: Chaos Calmer 15.05
Component: packages Version: Trunk
Keywords: pptp pppd Cc:

Description

# cat /etc/ppp/options.pptp

noipdefault
noauth
nobsdcomp
nodeflate
idle 0
maxfail 0
nomppe
persist
lcp-echo-failure 5
lcp-echo-interval 10

# ps

/usr/sbin/pppd nodetach ipparam aplus ifname pptp-aplus lcp-echo-interval 5 lcp-echo-failure 10 +ipv6 nodefaultroute usepeerdns persist maxfail 1 

Attachments (0)

Change History (1)

comment:1 Changed 3 years ago by anonymous

Sorry it looks like I figured out what is the reason.

/etc/config/network

   option keepalive 10

/lib/netifd/proto/ppp.sh

        local interval="${keepalive##*[, ]}"
        [ "$interval" != "$keepalive" ] || interval=5
...
     ${keepalive:+lcp-echo-interval $interval lcp-echo-failure ${keepalive%%[, ]*}}

keepalive is necessary to specify a comma-separated values​​, or the interval is set to 5:

syntax: option keealive '<failure> [, interval]'

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.