Felix Fietkau
18d4b8783c
netifd: do not stop service on shutdown, only call ifdown
...
Also add a small delay, like on restart
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 44096
10 years ago
Jo-Philipp Wich
1f6411e436
netifd: store additional DHCP lease information
...
Extend the DHCPv4 handler script to store additional information from the
DHCP lease in the per-interface data object.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 44092
10 years ago
Steven Barth
f565e0598d
netifd: Set source IP for DHCP static routes as well
...
Commit ce92f6650bd8a86db04c7a6cbb58e7fdb200a7e6 added source IP support
for DHCP default routes. As a side effect of this change the default route
could be present twice in netifd (once with source IP set and once with
source IP unset) if it was sent by the server in both the router and static
route options. Therefore add source IP support as well for static routes as this
case was not considered. Additional remove unused parameter type.
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 43645
10 years ago
Steven Barth
15d67644f1
This patch depends on "Pass source address to proto_add_ipv4_route".
...
I have not found a scenario that would break by setting the source address on
default, but please let me know if any special considerations should be taken.
Signed-off-by: Kristian Evensen <kristian.evensen at gmail.com>
SVN-Revision: 43582
10 years ago
Steven Barth
990b501ec4
netifd: fix default ORO-setting for 6rd
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 43214
10 years ago
Steven Barth
9106cc0af9
netifd: Make mtu configurable of dynamic 6rd tunnel interface
...
Patch allows to configure the mtu of the dynamic 6rd tunnel interface when created by dhcp script.
In some setups it's desirable to have config control over the 6rd tunnel mtu to maximize the traffic throughput
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 42871
10 years ago
Steven Barth
73179a188c
netifd: fix an error message during network shutdown
...
When 'wifi down' is called by /etc/init.d/network, it is run from
stop_service( ). This function is in turn invoked from stop( ).
stop( ) messes up the order by first procd_kill-ing the network
settings, then calling wifi to down the wifi networking
interfaces. By redefining stop( ) instead, the proper order is
restored.
Signed-off-by: Michel Stam <m.stam@fugro.nl>
SVN-Revision: 42745
10 years ago
John Crispin
2ae05c57f8
package/*: remove useless explicit set of function returncode
...
somebody started to set a function returncode in the validation
stuff and everybody copies it, e.g.
myfunction()
{
fire_command
return $?
}
a function automatically returns with the last returncode,
so we can safely remove the command 'return $?'. reference:
http://tldp.org/LDP/abs/html/exit-status.html
"The last command executed in the function or script determines the exit status."
Signed-off-by: Bastian Bittorf <bittorf@bluebottle.com>
SVN-Revision: 42278
10 years ago
Steven Barth
86671615de
netifd: suppress fw3 warnings in dhcp script
...
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 41892
10 years ago
Steven Barth
9231df5665
softwires: redesign dhcp(v6) provisioning
...
Signed-off-by: Steven Barth <steven@midlink.org>
SVN-Revision: 41823
10 years ago
Felix Fietkau
500d3072ec
netifd: use procd_add_reload_trigger
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41147
10 years ago
John Crispin
7a0606124a
netfid: make procd watch the network.interface object for events
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 41010
11 years ago
John Crispin
40218343cd
package: netifd: remove blank line at the end of file
...
Signed-off-by: Zhao, Gang <gamerh2o@gmail.com>
SVN-Revision: 40937
11 years ago
Felix Fietkau
d866ee2e30
netifd: replace the sleep 5 with an ubus wait_for call to speed up init script
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 40891
11 years ago
Felix Fietkau
dca014db76
netifd: Add renew handler for proto dhcp
...
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 40385
11 years ago
John Crispin
c7168b64ef
dhcp: Fix broadcast parameter validation support, remove unused netmask parameter
...
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
SVN-Revision: 40332
11 years ago
Steven Barth
0555ebf66d
6rd / ds-lite: make the firewall-zones of nested-protocols configurable
...
SVN-Revision: 40020
11 years ago
Steven Barth
2a893c2057
dhcp: send 6rd-ORO when expecting 6rd-information
...
SVN-Revision: 40019
11 years ago
Steven Barth
edd75e332c
netifd: pass on delegate flag from dhcp to 6rd
...
SVN-Revision: 39909
11 years ago
Jo-Philipp Wich
354efde275
netifd: fix validation constraints
...
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
SVN-Revision: 39648
11 years ago
John Crispin
8fb44e0d1e
netifd: add validation support
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 39621
11 years ago
Felix Fietkau
20151a3394
netifd: initialize the switch early at start time and on reload ( fixes #13015 )
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39183
11 years ago
Jo-Philipp Wich
1789744958
netifd: add reload trigger for /etc/config/wireless as well
...
SVN-Revision: 39131
11 years ago
Steven Barth
e49d67f192
Convert DHCP->6rd and DHCPv6->DS-Lite autoconfig to dynamic interface
...
SVN-Revision: 39061
11 years ago
Felix Fietkau
47730fe355
netifd: prevent an unnecessary restart of netifd-managed wifi interfaces at boot time
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 39046
11 years ago
John Crispin
31a2912cd9
netifd: enable coredumps again
...
got broken due procd startup. Requires procd resource limit patch.
Signed-off-by: Ulrich Weber <uw@xyne.com>
SVN-Revision: 39020
11 years ago
Felix Fietkau
3c50feca19
wifi: rename the "reload" (restarting non-netifd wifi) command to "reload_legacy"
...
Add a new "reload" command that reloads the netifd config as well
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38989
11 years ago
Felix Fietkau
498d84fc4e
netifd: add wireless configuration support and port mac80211 to the new framework
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38988
11 years ago
Felix Fietkau
107bcb5de3
netifd: remove redundant calls to /sbin/wifi down
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38982
11 years ago
Felix Fietkau
e78e720a6f
netifd: remove connect_time from /var/state, it is unused
...
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 38704
11 years ago
Steven Barth
56bc536713
netifd: rename customopts to sendopts for consistency
...
SVN-Revision: 38437
11 years ago
Steven Barth
c759b49a4f
Added 'customopts' dhcp protocol option, which is an array passed along to udhcpc as series of -x options.
...
Signed-off-by: Markus Stenberg <markus.stenberg@iki.fi>
SVN-Revision: 38436
11 years ago
John Crispin
f874094402
procd: convert various packages to procd style init.d scripts
...
Signed-off-by: John Crispin <blogic@openwrt.org>
SVN-Revision: 38023
11 years ago
Steven Barth
d8051a8814
netifd: fix typo in dhcp script
...
SVN-Revision: 37051
11 years ago
Jonas Gorski
b9de8ca7f5
netifd: bring wifi down before shutting down
...
works around wifiX references not being freed on network restart.
Signed-off-by: Jonas Gorski <jogo@openwrt.org>
SVN-Revision: 36883
12 years ago
Steven Barth
ea71678b09
netifd: added support for setting up 6rd from DHCP
...
SVN-Revision: 36626
12 years ago
Steven Barth
3abc915522
Remove deprecated ip6slaac option * use proto=dhcpv6 with reqprefix=no instead
...
SVN-Revision: 36280
12 years ago
Felix Fietkau
65657fb585
netifd: update to latest version
...
fixes DNS servers on reload (#12910 )
fixes ubus object race on reload or down/up (#12612 )
SVN-Revision: 35383
12 years ago
Steven Barth
fac1ed35ac
netifd: remove IPv6 forwarding-sysctl workaround
...
SVN-Revision: 35369
12 years ago
Steven Barth
ec41a6a08c
netifd: IPv6 sysctl, restart IPv6 in static mode to send RS
...
SVN-Revision: 35347
12 years ago
Steven Barth
75b06607db
netifd: add SLAAC ipv6 value for static-proto
...
SVN-Revision: 35346
12 years ago
Jo-Philipp Wich
f2766239ea
netifd: add a band-aid fix for the wifi setup vs. netifd init race by increasing the wait time to five seconds
...
SVN-Revision: 35240
12 years ago
Felix Fietkau
860c2e8116
netifd: call /etc/udhcp.user from the netifd dhcp.script
...
This was done previously when dhcp was handled by the network scripts.
So netifd should behave the same.
Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com>
SVN-Revision: 34704
12 years ago
Steven Barth
71ed7ae842
netifd: empty hotplug handler removed
...
SVN-Revision: 34465
12 years ago
Steven Barth
dffa972af1
Remove old IPv6 sysctl-config (deprecated)
...
SVN-Revision: 34418
12 years ago
Jo-Philipp Wich
611b2e8bb3
netifd: don't send a default client identifier in DHCP requests if no clientid uci option is given ( #12426 )
...
SVN-Revision: 34089
12 years ago
John Crispin
c2b8d1a619
Fix broadcast DHCP client startup option in dhcp.sh
...
Signed-off-by: Hans Dedecker (hans.dedecker at technicolor.com)
Fixes the DHCP request broadcasts replies option parsing
SVN-Revision: 33826
12 years ago
Felix Fietkau
405e21d167
packages: sort network related packages into package/network/
...
SVN-Revision: 33688
12 years ago