2adaa90534
When using ifplugd on a RNDIS interface with monitor mode, using SIOCSIFFLAGS seems to fail with EADDRNOTAVAIL. Treat it the same as if iface disappeared again. This has been observed on a Tegra TK1 using Linux 4.14. There seem to be a race when the kernel is creating the device: ifplugd(usb0): started: BusyBox v1.24.1 (2018-03-27 09:47:48 CEST) ifplugd(usb0): interface doesn't exist, waiting ifplugd(usb0): interface appeared ifplugd(usb0): upping interface ifplugd(usb0): setting interface flags failed: Cannot assign requested address <exit> With this patch ifplugd is successful in upping the device the second time around: ifplugd(usb0): upping interface ifplugd(usb0): using SIOCETHTOOL detection mode ifplugd(usb0): interface appeared ifplugd(usb0): upping interface ifplugd(usb0): setting interface flags failed: Cannot assign requested address ifplugd(usb0): interface appeared ifplugd(usb0): upping interface ifplugd(usb0): using SIOCETHTOOL detection mode ifplugd(usb0): link is up ifplugd(usb0): executing '/etc/ifplugd/ifplugd.usb.action usb0 up' ifplugd up ifplugd(usb0): exit code: 0 function old new delta up_iface 120 127 +7 Signed-off-by: Stefan Agner <stefan@agner.ch> Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> |
||
---|---|---|
.. | ||
libiproute | ||
ssl_helper | ||
ssl_helper-wolfssl | ||
udhcp | ||
arp.c | ||
arping.c | ||
brctl.c | ||
Config.src | ||
dnsd.c | ||
ether-wake.c | ||
ftpd.c | ||
ftpgetput.c | ||
hostname.c | ||
httpd_helpers.sh | ||
httpd_indexcgi.c | ||
httpd_post_upload.cgi | ||
httpd_ssi.c | ||
httpd.c | ||
ifconfig.c | ||
ifenslave.c | ||
ifplugd.c | ||
ifupdown.c | ||
inetd.c | ||
interface.c | ||
ip.c | ||
ipcalc.c | ||
isrv_identd.c | ||
isrv.c | ||
isrv.h | ||
Kbuild.src | ||
nameif.c | ||
nbd-client.c | ||
nc_bloaty.c | ||
nc.c | ||
netstat.c | ||
nslookup.c | ||
ntpd.c | ||
ntpd.diff | ||
parse_pasv_epsv.c | ||
ping.c | ||
pscan.c | ||
route.c | ||
slattach.c | ||
ssl_client.c | ||
tc.c | ||
tcpudp_perhost.c | ||
tcpudp_perhost.h | ||
tcpudp.c | ||
telnet.c | ||
telnetd.c | ||
telnetd.ctrlSQ.patch | ||
telnetd.IAC_test.sh | ||
tftp.c | ||
tls_aes.c | ||
tls_aes.h | ||
tls_pstm_montgomery_reduce.c | ||
tls_pstm_mul_comba.c | ||
tls_pstm_sqr_comba.c | ||
tls_pstm.c | ||
tls_pstm.h | ||
tls_rsa.c | ||
tls_rsa.h | ||
tls_symmetric.h | ||
tls.c | ||
tls.h | ||
traceroute.c | ||
tunctl.c | ||
vconfig.c | ||
wget.c | ||
whois.c | ||
zcip.c |