aboutsummaryrefslogtreecommitdiffstats
path: root/package/network/config/netifd/files/lib
Commit message (Collapse)AuthorAgeFilesLines
* netifd: quote vendorid and hostname variables in dhcp scriptHans Dedecker2016-07-201-2/+2
| | | | | | | Quote hostname and vendorid variables in dhcp script so they can hold strings having white spaces Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Remove hardcoded DHCP release optionHans Dedecker2016-07-201-1/+1
| | | | | | | Remove the udhcpc -R release option as sending a DHCP release is configurable via the uci option release. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
* netifd: Add configurable DHCP release behaviorLuka Perkov2016-06-191-3/+5
| | | | | | | | | Make sending a DHCP release configurable when the client exits allowing to clean up IP/mac state info in intermediate devices. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49332 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: Send DHCP release when client exitsLuka Perkov2016-06-191-1/+1
| | | | | | | | | | Let DHCP client send a release when it exists so the DHCP server is informed the IP address is released and allowing to clean up IP/mac state info in intermediate devices. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49321 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd-dhcp: supply parameters to user-scriptFelix Fietkau2015-05-081-1/+1
| | | | | | | | | hand over parameters to user-script e.g. $1=deconfig Signed-off-by: Leon George <leon@georgemail.de> Signed-off-by: Christian Mehlis <christian@m3hlis.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45626 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dhcp: add option specifying overriding custom-routesSteven Barth2015-05-022-2/+8
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45594 3c298f89-4303-0410-b956-a3cf2f4a3e73
* network: shorten names of generated interfacesSteven Barth2015-04-171-1/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45476 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: dhcp: install host route to gateway (#19182)Jo-Philipp Wich2015-03-151-0/+1
| | | | | | | | | Certain DHCP servers push a gateway outside of the assigned interface subnet, to support those situations install a host route towards the gateway. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44789 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: store additional DHCP lease informationJo-Philipp Wich2015-01-231-7/+7
| | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44092 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: Set source IP for DHCP static routes as wellSteven Barth2014-12-121-2/+1
| | | | | | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43645 3c298f89-4303-0410-b956-a3cf2f4a3e73
* This patch depends on "Pass source address to proto_add_ipv4_route".Steven Barth2014-12-081-1/+1
| | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43582 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: fix default ORO-setting for 6rdSteven Barth2014-11-081-1/+1
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43214 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: Make mtu configurable of dynamic 6rd tunnel interfaceSteven Barth2014-10-122-2/+5
| | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42871 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: suppress fw3 warnings in dhcp scriptSteven Barth2014-07-301-1/+1
| | | | | | Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41892 3c298f89-4303-0410-b956-a3cf2f4a3e73
* softwires: redesign dhcp(v6) provisioningSteven Barth2014-07-242-3/+15
| | | | | | Signed-off-by: Steven Barth <steven@midlink.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41823 3c298f89-4303-0410-b956-a3cf2f4a3e73
* package: netifd: remove blank line at the end of fileJohn Crispin2014-06-021-1/+0
| | | | | | Signed-off-by: Zhao, Gang <gamerh2o@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40937 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: Add renew handler for proto dhcpFelix Fietkau2014-04-051-0/+9
| | | | | | Signed-off-by: Helmut Schaa <helmut.schaa@googlemail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40385 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dhcp: Fix broadcast parameter validation support, remove unused netmask ↵John Crispin2014-03-301-2/+1
| | | | | | | | parameter Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40332 3c298f89-4303-0410-b956-a3cf2f4a3e73
* 6rd / ds-lite: make the firewall-zones of nested-protocols configurableSteven Barth2014-03-262-2/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40020 3c298f89-4303-0410-b956-a3cf2f4a3e73
* dhcp: send 6rd-ORO when expecting 6rd-informationSteven Barth2014-03-261-0/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40019 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: pass on delegate flag from dhcp to 6rdSteven Barth2014-03-132-2/+5
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39909 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: add validation supportJohn Crispin2014-02-181-9/+9
| | | | | | Signed-off-by: John Crispin <blogic@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39621 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Convert DHCP->6rd and DHCPv6->DS-Lite autoconfig to dynamic interfaceSteven Barth2013-12-151-12/+11
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39061 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: rename customopts to sendopts for consistencySteven Barth2013-10-171-4/+4
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38437 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Added 'customopts' dhcp protocol option, which is an array passed along to ↵Steven Barth2013-10-171-2/+7
| | | | | | | | udhcpc as series of -x options. Signed-off-by: Markus Stenberg <markus.stenberg@iki.fi> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38436 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: fix typo in dhcp scriptSteven Barth2013-06-281-1/+1
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37051 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: added support for setting up 6rd from DHCPSteven Barth2013-05-132-2/+28
| | | | git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36626 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: call /etc/udhcp.user from the netifd dhcp.scriptFelix Fietkau2012-12-151-0/+3
| | | | | | | | | 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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34704 3c298f89-4303-0410-b956-a3cf2f4a3e73
* netifd: don't send a default client identifier in DHCP requests if no ↵Jo-Philipp Wich2012-11-051-2/+2
| | | | | | clientid uci option is given (#12426) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34089 3c298f89-4303-0410-b956-a3cf2f4a3e73
* Fix broadcast DHCP client startup option in dhcp.shJohn Crispin2012-10-171-1/+1
| | | | | | | | Signed-off-by: Hans Dedecker (hans.dedecker at technicolor.com) Fixes the DHCP request broadcasts replies option parsing git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33826 3c298f89-4303-0410-b956-a3cf2f4a3e73
* packages: sort network related packages into package/network/Felix Fietkau2012-10-103-0/+187
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33688 3c298f89-4303-0410-b956-a3cf2f4a3e73