Modify

Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11952 closed defect (worksforme)

WNDR3800 WAN port up status not updated to /var/state

Reported by: anonymous Owned by: developers
Priority: response-needed Milestone: Barrier Breaker 14.07
Component: base system Version: Trunk
Keywords: Cc:

Description

In the latest trunk it seems the WNDR3800 is not able to tell if the WAN port cable is disconnected. It just always shows as online with /var/state network.wan.up=1 no matter what. This prevents it from trying to receive new DHCP leases when the cable is reconnected and is troublesome with other development work.

The Status->Overview page on the LUCI GUI also shows erroneous information even after a successful DHCP lease you see:

Type: dhcp
Address: 0.0.0.0
Netmask: 255.255.255.255
Gateway: 0.0.0.0
Connected: 0h 0m 46s

Attachments (0)

Change History (6)

comment:1 Changed 6 years ago by anonymous

This has actually been a problem for at least 3-4 months now.

comment:2 Changed 6 years ago by jow

  • Priority changed from normal to response-needed

The uci state var mechanism is being faded out and only stubbed anymore.
It seems to me that your build lacks netifd and/or libubus-lua which LuCI uses to retrieve the network state.

Please attach the output of the ./scripts/diffconfig.sh command.

comment:3 Changed 6 years ago by anonymous

I found libubus-lua but can't find netifd on the menuconfig

LuCI would be unable to pull the values from the state anyways because they are not being set to begin with.

root@OpenWrt:~# uci show -p /var/state network.wan
network.wan=interface
network.wan.ifname=eth1
network.wan.proto=dhcp
network.wan.up=1
network.wan.connect_time=31
network.wan.device=eth1

CONFIG_TARGET_ar71xx=y
CONFIG_TARGET_ar71xx_generic=y
CONFIG_TARGET_ar71xx_generic_WNDR3700=y
CONFIG_OPENVPN_DISABLE_EUREPHIA=y
CONFIG_OPENVPN_DISABLE_MANAGEMENT=y
CONFIG_PACKAGE_SAMBA_MAX_DEBUG_LEVEL=-1
CONFIG_PACKAGE_curl=y
CONFIG_PACKAGE_ddns-scripts=y
CONFIG_PACKAGE_ethtool=y
CONFIG_PACKAGE_ip=y
CONFIG_PACKAGE_ipsec-tools=y
CONFIG_PACKAGE_iptables-mod-conntrack-extra=y
CONFIG_PACKAGE_iptables-mod-filter=y
CONFIG_PACKAGE_iptables-mod-ipopt=y
CONFIG_PACKAGE_iptables-mod-ipsec=y
CONFIG_PACKAGE_iptables-mod-nat-extra=y
CONFIG_PACKAGE_kmod-8021q=y
CONFIG_PACKAGE_kmod-crypto-authenc=y
CONFIG_PACKAGE_kmod-crypto-cbc=y
CONFIG_PACKAGE_kmod-crypto-deflate=y
CONFIG_PACKAGE_kmod-crypto-des=y
CONFIG_PACKAGE_kmod-crypto-hash=y
CONFIG_PACKAGE_kmod-crypto-hmac=y
CONFIG_PACKAGE_kmod-crypto-iv=y
CONFIG_PACKAGE_kmod-crypto-manager=y
CONFIG_PACKAGE_kmod-crypto-md5=y
CONFIG_PACKAGE_kmod-crypto-rng=y
CONFIG_PACKAGE_kmod-crypto-sha1=y
CONFIG_PACKAGE_kmod-crypto-wq=y
CONFIG_PACKAGE_kmod-gre=y
CONFIG_PACKAGE_kmod-ifb=y
CONFIG_PACKAGE_kmod-ipsec=y
CONFIG_PACKAGE_kmod-ipsec4=y
CONFIG_PACKAGE_kmod-ipsec6=y
CONFIG_PACKAGE_kmod-ipt-conntrack-extra=y
CONFIG_PACKAGE_kmod-ipt-filter=y
CONFIG_PACKAGE_kmod-ipt-ipopt=y
CONFIG_PACKAGE_kmod-ipt-ipsec=y
CONFIG_PACKAGE_kmod-ipt-nat-extra=y
CONFIG_PACKAGE_kmod-iptunnel4=y
CONFIG_PACKAGE_kmod-iptunnel6=y
CONFIG_PACKAGE_kmod-ipv6=y
CONFIG_PACKAGE_kmod-l2tp=y
CONFIG_PACKAGE_kmod-lib-textsearch=y
CONFIG_PACKAGE_kmod-lib-zlib=y
CONFIG_PACKAGE_kmod-pppol2tp=y
CONFIG_PACKAGE_kmod-sched-connmark=y
CONFIG_PACKAGE_kmod-sched-core=y
CONFIG_PACKAGE_kmod-tun=y
CONFIG_PACKAGE_libcares=y
CONFIG_PACKAGE_libcurl=y
CONFIG_PACKAGE_libcyassl=y
CONFIG_PACKAGE_libiwinfo=y
CONFIG_PACKAGE_libiwinfo-lua=y
CONFIG_PACKAGE_liblua=y
CONFIG_PACKAGE_liblzo=y
CONFIG_PACKAGE_libncurses=y
CONFIG_PACKAGE_libopenssl=y
CONFIG_PACKAGE_libpcap=y
CONFIG_PACKAGE_libpcre=y
CONFIG_PACKAGE_libpthread=y
CONFIG_PACKAGE_libreadline=y
CONFIG_PACKAGE_librpc=y
CONFIG_PACKAGE_libuci-lua=y
CONFIG_PACKAGE_libwrap=y
CONFIG_PACKAGE_lua=y
CONFIG_PACKAGE_luci=y
CONFIG_PACKAGE_luci-app-ddns=y
CONFIG_PACKAGE_luci-app-firewall=y
CONFIG_PACKAGE_luci-app-multiwan=y
CONFIG_PACKAGE_luci-app-openvpn=y
CONFIG_PACKAGE_luci-app-qos=y
CONFIG_PACKAGE_luci-app-samba=y
CONFIG_PACKAGE_luci-app-tinyproxy=y
CONFIG_PACKAGE_luci-i18n-english=y
CONFIG_PACKAGE_luci-lib-core=y
CONFIG_PACKAGE_luci-lib-ipkg=y
CONFIG_PACKAGE_luci-lib-lmo=y
CONFIG_PACKAGE_luci-lib-nixio=y
CONFIG_PACKAGE_luci-lib-sys=y
CONFIG_PACKAGE_luci-lib-web=y
CONFIG_PACKAGE_luci-mod-admin-core=y
CONFIG_PACKAGE_luci-mod-admin-full=y
CONFIG_PACKAGE_luci-proto-core=y
CONFIG_PACKAGE_luci-proto-ppp=y
CONFIG_PACKAGE_luci-sgi-cgi=y
CONFIG_PACKAGE_luci-ssl=y
CONFIG_PACKAGE_luci-theme-base=y
CONFIG_PACKAGE_luci-theme-openwrt=y
CONFIG_PACKAGE_multiwan=y
CONFIG_PACKAGE_nms=y
CONFIG_PACKAGE_nprobe=y
CONFIG_PACKAGE_openl2tp-full=y
CONFIG_PACKAGE_opennhrp=y
CONFIG_PACKAGE_openvpn=y
CONFIG_PACKAGE_portmap=y
CONFIG_PACKAGE_ppp-mod-pppol2tp=y
CONFIG_PACKAGE_proccgi=y
CONFIG_PACKAGE_px5g=y
CONFIG_PACKAGE_qos-scripts=y
CONFIG_PACKAGE_resolveip=y
CONFIG_PACKAGE_samba36-server=y
CONFIG_PACKAGE_syslogz=y
CONFIG_PACKAGE_tc=y
CONFIG_PACKAGE_tcpdump-mini=y
CONFIG_PACKAGE_terminfo=y
CONFIG_PACKAGE_tinyproxy=y
CONFIG_PACKAGE_uhttpd=y
CONFIG_PACKAGE_uhttpd-mod-tls=y
CONFIG_PACKAGE_uhttpd-mod-tls_cyassl=y
CONFIG_PACKAGE_zlib=y
CONFIG_PACKAGE_zoneinfo-core=y

comment:4 Changed 6 years ago by jow

  • Resolution set to worksforme
  • Status changed from new to closed

You misunderstood, LuCI does not pull state vars at all anymore, it uses ubus to infer network state from netifd.
Builds without netifd and libubus-lua are not supported anymore so you should ensure that they are present.

Also make sure that the LuCI feed is current.

comment:5 Changed 6 years ago by anonymous

Thanks. I guess that would explain why values are not even written to the state anymore. I made my own luci package based off the latest trunk and I'm able to see that information on the GUI but I would still like to pull information I need via the CLI and scripts. Do you have links to documentation regarding the use of netifd so I may pull information from it as needed such as IP address, netmask, up/down state?

comment:6 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.