New BS build r35034 02-17-18 is out

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Goto page 1, 2, 3, 4  Next
Author Message
jerrytouille
DD-WRT Guru


Joined: 11 Dec 2015
Posts: 1304

PostPosted: Sun Feb 18, 2018 15:01    Post subject: New BS build r35034 02-17-18 is out Reply with quote
New BS build r35034 02-17-18 is out.
https://download1.dd-wrt.com/dd-wrtv2/downloads/betas/2018/02-17-2018-r35034/

Report your findings Cool
Sponsor
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Sun Feb 18, 2018 15:11    Post subject: Reply with quote
ntpclient not updating time. It didn't crash with error.
Code:

root@rt-n18u:~# ntpclient --help
root@rt-n18u:~# ntpclient
root@rt-n18u:~# ntpclient time.hko.hk
root@rt-n18u:~# date
Thu Jan  1 08:05:01 HKT 1970
root@rt-n18u:~# ntpclient time.nist.gov
root@rt-n18u:~# date
Thu Jan  1 08:09:01 HKT 1970

My startup script for setting time without using NTP:
Code:
date --utc -s `curl -I 'http://www.google.com/'  2&>/dev/null | grep -i '^date:' | sed 's/^[Dd]ate: //g' | awk 'BEGIN{months="JanFebMarAprMayJunJulAugSepOctNovDec"}{printf("%s%02d%s%s", $4, index(months,$3)/3+1,$2,$5)}' | sed 's/://' | sed 's/:/./'`

Also, the ping to www.google.com was over 10ms. It used to be only 2ms in older builds.

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 1407

PostPosted: Sun Feb 18, 2018 15:30    Post subject: Reply with quote
mwchang wrote:
ntpclient not updating time. It didn't crash with error.
Code:

root@rt-n18u:~# ntpclient --help
root@rt-n18u:~# ntpclient
root@rt-n18u:~# ntpclient time.hko.hk
root@rt-n18u:~# date
Thu Jan  1 08:05:01 HKT 1970
root@rt-n18u:~# ntpclient time.nist.gov
root@rt-n18u:~# date
Thu Jan  1 08:09:01 HKT 1970

My startup script for setting time without using NTP:
Code:
date --utc -s `curl -I 'http://www.google.com/'  2&>/dev/null | grep -i '^date:' | sed 's/^[Dd]ate: //g' | awk 'BEGIN{months="JanFebMarAprMayJunJulAugSepOctNovDec"}{printf("%s%02d%s%s", $4, index(months,$3)/3+1,$2,$5)}' | sed 's/://' | sed 's/:/./'`

Also, the ping to www.google.com was over 10ms. It used to be only 2ms in older builds.


I know why... I bet if you do a nslookup on your router for both of those the first address that will be an IPv6 and you are on IPv4....

here is what the problem is from my post in the atheros firmware version (34929):
Quote:

I have spent some time looking at the mini-ntpclient.c code

I think that where the ntp problem occurring is

using rev 34895 line numbers


What is happening is that on line 87 when getaddrinfo is called result is a linked list of IPV4 and/or IPV6 addresses since on line 78 the ai_family was set to AF_UNSPEC (so the code does not care which ip version).

When line 96 is reached it is a for loop (because I am assuming the intent was to read through the list). When the "if" statements are reached (depending on if the ai_family is AF_INET or AF_INET6) there is a "break" that exits the loop. This means that only the first entry in the list is evaluated and copied. If this happens to be an AF_INET6 (as you know is IPV6) then that is what is used even if the user has ipv6 disabled. The DNS lookup does not care if it is IPv4 or IPv6 (for example do a nslookup on say google it returns IPv4 and IPv6 addresses).

Those of us that happen to select a server that can be resolved by either IPv4 or IPv6 seem to be drawing the IPv6 address as the first in the list. Obviously, if one is on IPv4, the IPv6 address will not work and the system logs an error and keeps repeating this bug.

There are multiple ways to fix this and since you guys maintain the code, I would rather you choose the method. If you need ideas though ask, I will suggest.


I hope this helps.....
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Sun Feb 18, 2018 16:12    Post subject: Reply with quote
Wildlion wrote:
I know why... I bet if you do a nslookup on your router for both of those the first address that will be an IPv6 and you are on IPv4....

here is what the problem is from my post in the atheros firmware version (34929) ....
I have spent some time looking at the mini-ntpclient.c code ....

1. Most people are still with IPv4!
2. There is an option in DD-WRT WEBUI to disable "IPV6 Support" in Setup->IPv6, and I have disabled it there. Smile
3. Though I know a bit of C programming, I have never worked with firmware programming. CanNOT help much!
4. Maybe we should drop ntpclient and just use HTTP to set time? Wink
5. How come the IPv6 problem doesn't affect my stupid script which uses curl?

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Newbrain
DD-WRT User


Joined: 28 Dec 2013
Posts: 171

PostPosted: Sun Feb 18, 2018 16:31    Post subject: ASUS RT-AC68U & Linksys E2000 Reply with quote
NTP is working on network with it's own stratum-1 servers, which seems to support the analysis made by Wildlion
Wildlion wrote:
I have spent some time looking at the mini-ntpclient.c code ......



Asus RT-AC68U
Firmware: DD-WRT v3.0-r35034 std (02/17/18) - (previous r34929)
Kernel: Linux 4.4.116-rc1 #2608 SMP Sat Feb 17 11:24:53 CET 2018 armv7l
5Ghz (Mixed) with 80Mhz channel width: Ok
SSH: Ok
Telnet: Disabled but tested to work
Site Survey: Ok
Wi-viz Survey 2.4Ghz & 5Ghz: Ok
Reset: No
Status: Ok
Uptime: 3:06
CPU Temperature: CPU 68.0 °C / WL0 46.0 °C / WL1 46.0 °C

2 x E2000
Firmware: DD-WRT v3.0-r35034 mega (02/17/18) - (previous r34929)
Kernel: Linux 3.10.108-dd #17796 Sat Feb 17 17:41:20 CET 2018 mips
2.4Ghz (NG-mixed) with 40Mhz channel width: Ok
SSH: Ok
Telnet: Disabled but tested to work
Site Survey: Ok
Wi-viz Survey 2.4Ghz: Ok
Reset: No
Status: Ok
Uptime: 3:22
CPU Temperature: WL0 53.0 °C


All devices working as AP's each with individual 1Gb wired connections to main firewall
Quote:
PITABoy
DD-WRT User


Joined: 07 Jun 2006
Posts: 186

PostPosted: Sun Feb 18, 2018 19:24    Post subject: Reply with quote
Router: Asus Rt-AC87U
Status: Brick. reverting to 02-12-2018
Wildlion
DD-WRT Guru


Joined: 24 May 2016
Posts: 1407

PostPosted: Sun Feb 18, 2018 20:04    Post subject: Reply with quote
mwchang wrote:
Wildlion wrote:
I know why... I bet if you do a nslookup on your router for both of those the first address that will be an IPv6 and you are on IPv4....

here is what the problem is from my post in the atheros firmware version (34929) ....
I have spent some time looking at the mini-ntpclient.c code ....

1. Most people are still with IPv4!
2. There is an option in DD-WRT WEBUI to disable "IPV6 Support" in Setup->IPv6, and I have disabled it there. Smile
3. Though I know a bit of C programming, I have never worked with firmware programming. CanNOT help much!
4. Maybe we should drop ntpclient and just use HTTP to set time? Wink
5. How come the IPv6 problem doesn't affect my stupid script which uses curl?


I think the devs are preparing for IPv6. This commit was a re-write and I think that they just overlooked it. When you are doing something like that it is easy to over-look a simple problem (so I do not blame them, I have done the same thing).

I would have to read through the curl code, but my guess is that the script works because the system had IPv6 disabled (your check box) and thus curl forces the connection goes out over IPv4, similar to a ping and so on...

None of it is your fault.
flyzipper
DD-WRT Guru


Joined: 21 Feb 2016
Posts: 504

PostPosted: Sun Feb 18, 2018 22:57    Post subject: Reply with quote
Router/Version: Netgear R7000
Firmware: DD-WRT v3.0-r35034 std ( 02/17/18 )
Kernel: Linux 4.4.116-rc1 #2608 SMP Sat Feb 17 11:24:53 CET 2018 armv7l
Previous: r34929
Mode/Status: Gateway / working
Reset: no
Issues/Errors: None so far

Uptime: 26m
Temperatures: CPU 58.6 °C / WL0 44.0 °C / WL1 47.5 °C

ian5142
DD-WRT Guru


Joined: 23 Oct 2013
Posts: 2318
Location: Canada

PostPosted: Mon Feb 19, 2018 1:57    Post subject: Upgrade Reply with quote
Router/Version: Asus N66u
Firmware: 35034
Previous: 34777
Mode/Status: Gateway, DHCP, QoS
Reset: No
Issues/Errors: None, so far.

_________________
Before asking a question on the forums, update dd-wrt: Where do I download firmware? I suggest reading it all.
QCA Best WiFi Settings


Some dd-wrt wiki pages are up to date, others are not. PM me if you find an old one.

Atheros:
Netgear R7800 x3 - WDS AP / station, gateway, QoS
TP-Link Archer C7 v2 x2 - WDS Station
TP-Link TL-WDR3600 v1 - WDS Station
TP-Link 841nd v8 - NU
D-Link 615 C1/E3/I1 x 7 - 1 WDS station
D-Link 825 B1 - NU
D-Link 862L A1 x2 - WDS Station
Netgear WNDR3700v2 - NU
UBNT loco M2 x2 - airOS

Broadcom
Linksys EA6400 - Gateway, QoS
Asus N66U - AP
Netgear WNDR3700v3 - not used
MediaTek
UBNT EdgeRouter X - switch
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Mon Feb 19, 2018 9:38    Post subject: Reply with quote
Router/Version: Asus RT-N18U
Firmware: DD-WRT v3.0-r35034 std (02/17/18 )
Kernel: Linux 4.4.116-rc1 #2612 Sat Feb 17 12:03:05 CET 2018 armv7l
Previous: DD-WRT v3.0-r34929 std (02/12/18 )
Mode/Status: Access Point (AP), Wired Working, Wireless working
Reset: NO reset during firmware upgrade
Issues/Errors:

Per another reply:

1. The ping to www.google.com increased from 2ms to 13ms
2. ntpclient failed to work again

Miscellaneous:
- Router not using IPv6, VPN nor USB
- Router is NOT working 24/7
- LAN LED ... too lazy to check! Meow... >@.@<
- Wireless function is off for the meantime

Old problems:
a. DDNS (inadyn) crashed in build 31722
b. Testing port-forwarding via WAN IP from within LAN not working in builds 34411-34760. Needed external proxy server.
c. NTP client not working in builds 34886-34876 (affecting process_monitor?)

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Mon Feb 19, 2018 9:52    Post subject: Reply with quote
Wildlion wrote:
I think the devs are preparing for IPv6. This commit was a re-write and I think that they just overlooked it. When you are doing something like that it is easy to over-look a simple problem (so I do not blame them, I have done the same thing).

IPv6 is indeed implemented at data carrier and ISP level. I don't know the deadline for lower level devices. I don't know whether IPv4 would be completely phased out as well.
Quote:

I would have to read through the curl code, but my guess is that the script works because the system had IPv6 disabled (your check box) and thus curl forces the connection goes out over IPv4, similar to a ping and so on...

Then ntpclient should have been using the same logic in curl regarding the selection between IPv4 and IPv6? Wink
Quote:
None of it is your fault.

Not blaming anyone since we are using free, voluntary freeware. Smile

_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
SinCalChewy
DD-WRT User


Joined: 09 Nov 2014
Posts: 314
Location: Bakersfield, CA

PostPosted: Mon Feb 19, 2018 16:23    Post subject: Reply with quote
Router/Version: 2x Linksys E3000
Firmware: dd-wrt.v24-35034_NEWD-2_K3.x_mega-e3000.bin
Previous: dd-wrt.v24-34929_NEWD-2_K3.x_mega-e3000.bin
Kernel: Linux 3.10.108-dd #17796 Sat Feb 17 17:41:20 CET 2018 mips
Mode/Status: Client Bridges, working.
Reset: No.
Issues/Errors: None thus far, speedtests seem okay.

_________________

Deployed Routers:
Netgear R7800 - 1x build 46979
- Gateway (USB /w Entware, CAKE QoS)
Netgear R7000 - 3x build 46979
pekkleminer
DD-WRT Novice


Joined: 06 Jun 2017
Posts: 18

PostPosted: Tue Feb 20, 2018 19:50    Post subject: Reply with quote
Router/Version: TPLINK Archer C9 v1
Firmware: DD-WRT v3.0-r35034 std (02/17/1Cool
Previous: r34929
Kernel: Linux 4.4.116-rc1 #2610 SMP Sat Feb 17 11:49:30 CET 2018 armv7l
Mode/Status: Using as AP; DHCP, WAN, and Firewall disabled
Reset: No.
Issues/Errors: None so far, uptime 12 hours.
mwchang
DD-WRT Guru


Joined: 26 Mar 2013
Posts: 1855
Location: Hung Hom, Hong Kong

PostPosted: Wed Feb 21, 2018 5:41    Post subject: Reply with quote
Calling ntpclient with an IPv4 address really works!
Code:
root@rt-n18u:~# date -s 20110221
Sun Aug 11 02:21:00 HKT 2019
root@rt-n18u:~# ntpclient 118.143.17.82
root@rt-n18u:~# date
Wed Feb 21 13:40:55 HKT 2018

This possibly confirming what Wildlion said in the following thread:

Posted: Sat Feb 17, 2018 9:11 am
https://www.dd-wrt.com/phpBB2/viewtopic.php?t=313836&postdays=0&postorder=asc&start=30

I didn't read the C source codes though. Following are related bugs:

http://svn.dd-wrt.com/changeset/34866
http://svn.dd-wrt.com/ticket/6175
http://svn.dd-wrt.com/ticket/6137


_________________
Router: Asus RT-N18U (rev. A1)

Drink, Blink, Stretch! Live long and prosper! May the Force and farces be with you!

Facebook: https://www.facebook.com/changmanwai
Website: https://sites.google.com/site/changmw
SETI@Home profile: http://setiathome.berkeley.edu/view_profile.php?userid=211832
GitHub: https://github.com/changmw/changmw
Therameatelf
DD-WRT User


Joined: 31 Jan 2016
Posts: 74

PostPosted: Wed Feb 21, 2018 9:13    Post subject: Reply with quote
Router Name: ea6400
Router Model: Asus RT-AC68U
Firmware: DD-WRT v3.0-r35034 std (02/17/1Cool
Kernel: Linux 4.4.116-rc1 #2608 SMP Sat Feb 17 11:24:53 CET 2018 armv7l
Previous: DD-WRT v3.0-r30631 std (09/14/16)
Status: VPN AP Working
Fix for OpenVPN 2.4 = Enable IPv6; Ignore IPv6 in config.
Goto page 1, 2, 3, 4  Next Display posts from previous:    Page 1 of 4
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum