aboutsummaryrefslogtreecommitdiff
path: root/net/isc-dhcp
Commit message (Collapse)AuthorAge
* isc-dhcpd: Redux of convenience functions avoiding sed/cutPhilip Prindeville2023-10-15
| | | | | | Also minimize messing with $IFS. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: Use 'append' instead of manually appendingPhilip Prindeville2023-10-15
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: refuse to add empty DHCP rangeLeon M. Busch-George2023-10-15
| | | | | | | ipcalc.sh no longer outputs invalid ranges and fails with an error code in such cases. React to the error. Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
* isc-dhcp: adapt to new ipcalc paradigmLeon M. Busch-George2023-10-15
| | | | | | | | With #12925, 'BROADCAST' will no longer be set if there is no local broadcast address (rather than holding the global broadcast address). Prepare for the merge but stay compatible with the old version of ipcalc. Signed-off-by: Leon M. Busch-George <leon@georgemail.eu>
* isc-dhcp: Allow per-subnet domain namesPhilip Prindeville2023-09-17
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcpd: Generate correct delimiter in hex stringsPhilip Prindeville2023-09-17
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: some IoTs need forced rebinding/renewal timesPhilip Prindeville2023-07-30
| | | | | | | | I've noticed my AppleTV's refresh their leases ever minute unless I explicitly force their renewal time higher, because it doesn't default to 50% of the lease time. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: fix handling multiple instances of 'routes' listPhilip Prindeville2023-07-30
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: use network_get_device in client scriptsPhilip Prindeville2023-07-25
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: don't require subnet poolsPhilip Prindeville2023-06-19
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: force sending unrequested parametersPhilip Prindeville2023-06-19
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: Update to 4.4.3-P1Philip Prindeville2023-03-27
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: Fix isc-dhcp-dyndns meta packagePhilip Prindeville2023-03-27
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: allow suppression of default gatewayPhilip Prindeville2023-03-01
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: make indent consistent in configPhilip Prindeville2023-03-01
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* treewide: quote CC and CXXPaul Fertser2023-01-20
| | | | | | | When CC is set to e.g. "ccache mips-openwrt-linux-musl-gcc" it needs to be quoted to avoid word splitting on substitution. Signed-off-by: Paul Fertser <fercerpav@gmail.com>
* Merge pull request #19866 from pprindeville/isc-dhcpd-detect-reload-properlyPhilip Prindeville2022-11-11
|\ | | | | isc-dhcp: Fix logic to detect if the config file is unchanged
| * isc-dhcp: Fix logic to detect if the config file is unchangedPhilip Prindeville2022-11-08
| | | | | | | | | | | | Thanks for Jaymin Patel for pointing the broken logic out. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* | isc-dhcp: support sending explicit default routePhilip Prindeville2022-10-21
|/ | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: avoid gratuitous reload of namedPhilip Prindeville2022-10-05
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: don't use allow-update in bind configPhilip Prindeville2022-07-13
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: Update to 4.4.3Philip Prindeville2022-03-15
| | | | | | | Note that on 32-bit ARM with MUSL we don't have Unwind_GetIP() so we need to disable backtraces. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: detect whether ddns transfers are IPv4 onlyPhilip Prindeville2022-03-15
| | | | | | | | | | | | | | | | If named is configured to not listen on any IPv6 interfaces, then we should run 'nsupdate' with the '-4' argument. Also: * cleanup RFC-1918 address detection; * don't generate PTR records for domain entries that aren't RFC-1918 addresses or these will generate NOTAUTH failures; We're assuming that we're doing DNS split-horizon and that internal addresses aren't routable. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: don't leak mktemp filesPhilip Prindeville2022-03-15
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* Merge pull request #17718 from pprindeville/isc-dhcp-fix-srvhost-rrPhilip Prindeville2022-01-28
|\ | | | | isc-dhcp: properly anchor SRV RR's
| * isc-dhcp: properly anchor SRV RR'sPhilip Prindeville2022-01-28
| | | | | | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* | isc-dhcp: fix build on macosSergey V. Lobanov2022-01-28
|/ | | | | | | | | isc-dhcp uses system ar tool so build fails on Darwin build host. Embedded bind lib uses system ar and ranlib tools and fails on Darwin This patch explicitly specifies ar and ranlib tools for target build Signed-off-by: Sergey V. Lobanov <sergey@lobanov.in>
* isc-dhcpd: handle extra spaces in routesPhilip Prindeville2021-05-02
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: add dynamic DNS as meta packagePhilip Prindeville2021-03-18
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* treewide: Run refresh on all packagesIlya Lipnitskiy2021-02-20
| | | | | | | | | The crude loop I wrote to come up with this changeset: find -L package/feeds/packages/ -name patches | \ sed 's/patches$/refresh/' | sort | xargs make Signed-off-by: Ilya Lipnitskiy <ilya.lipnitskiy@gmail.com>
* isc-dhcp: support hex strings as option argumentsPhilip Prindeville2021-02-05
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: treat 'config host' like superset of 'config domain'Philip Prindeville2021-02-04
| | | | | | | | | | | | Not including an A record mapping will cause nsupdate to balk at CNAME and MX records (and probably SRV as well) because the target will be unknown at the time of parsing, until the lease gets activated. We need these RR's to be in place well before the servers even come up. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: add support for multi-homing in 'domain' configsPhilip Prindeville2021-01-28
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: support dynamic dns for 10/8 and 172.16/12Philip Prindeville2021-01-15
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: add dynamic dns integration for local bind serverPhilip Prindeville2021-01-13
| | | | | | | | Start after named is running. Add support for "cname", "domain", "mxhost", and "srvhost" configs. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: fix regression in reloadingPhilip Prindeville2020-12-18
| | | | | | Introduced in "isc-dhcp: improve startup performance" Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: seeing crashes when attempting to update dynamic dnsPhilip Prindeville2020-12-10
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: add support for RFC-3442 classless routes to hostsPhilip Prindeville2020-09-10
| | | | | | Also avoid forward references to functions. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: add support for RFC-3442 classless IPv4 routesPhilip Prindeville2020-08-28
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: fix compilation with GCC 10Rosen Penev2020-08-15
| | | | Signed-off-by: Rosen Penev <rosenp@gmail.com>
* isc-dhcp: improve startup performancePhilip Prindeville2020-04-21
| | | | | | | | On some platforms where interfaces come up very slowly, this can cause a race-condition with dhcpd coming up before all the interfaces have finished initializing. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: fix confused descriptionRosen Penev2019-09-26
| | | | | | Originally https://github.com/openwrt/packages/pull/10044 Signed-off-by: Rosen Penev <rosenp@gmail.com>
* treewide: add PKG_CPE_ID for better cvescanner coverageJan Pavlinec2019-09-17
| | | | Signed-off-by: Jan Pavlinec <jan.pavlinec@nic.cz>
* isc-dhcp: Remove --disable-tracing from configure argsHeath Kehoe2019-06-03
| | | | | | | | | | | | | | | | | | This fixes a crash that happens when dhcpd is configured with a failover peer, and the failover peer goes down. The crash is due to a dereference of a freed object. When tracing is enabled (which is the default) the object in question is referenced by the tracing code and so doesn't get freed prematurely. I have observed this crash on two different target platforms (mips and x86_64), and it is reproducible on non-OpenWRT distros by building isc-dhcpd using --disable-tracing. This has been reported to ISC, but their response was that it's a low priority as the simple work-around is to leave tracing enabled. Re-enabling the tracing code only increases the size of the executable by about 24KB. Signed-off-by: Heath Kehoe <yaheath@gmail.com>
* isc-dhcp: drop .conf suffix on dhcrelay config filePhilip Prindeville2018-10-28
| | | | | | Resolves issue #7235 Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: write resolv.conf per network & dhcp settingsPhilip Prindeville2018-06-12
| | | | | | | The internal nameservers and the DHCP default domain should be squirted into /tmp/resolv.conf. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: update to 4.4.1Philip Prindeville2018-04-29
| | | | Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* dhcrelay4: add support for up/downstream interfacesBrian J. Murrell2018-04-11
| | | | | | | | | | | | dhcrelay has the ability to monitor interfaces for requests in a single direction only rather than listening to all interfaces for requests. Doing this allows one to suppress the duplication of having the relay forward requests from the same network that the DHCP server is on. Signed-off-by: Brian J. Murrell <brian@interlinx.bc.ca>
* isc-dhcp: allow hosts to have dhcp optionsPhilip Prindeville2018-04-09
| | | | | | | | | | | | Sometimes it's necessary to set per-host options like: list dhcp_option 'option:always-broadcast,true' for hosts that don't understand unicast replies. There might be other options you might want to set on a per-host basis, such as extensions-path, dhcp-message-text, etc. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>
* isc-dhcp: fix typeof regex for IP address patternPhilip Prindeville2018-04-08
| | | | | | Missing backslash in "\d+" for last digit of dotted quad. Signed-off-by: Philip Prindeville <philipp@redfish-solutions.com>