summaryrefslogtreecommitdiffhomepage
AgeCommit message (Collapse)Author
2016-12-01cmake: Find libubox/uloop.hFlorian Fainelli
Add a CMake FIND_PATH and INCLUDE_DIRECTORIES searching for libubox/uloop.h. Some external toolchains which do not include standard locations would fail to find the header otherwise. Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
2016-12-01odhcpd: Display infinite valid lifetime as -1Hans Dedecker
Display infinite valid lifetime as -1 both in ubus and statefile Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-11-21Respect interface "ignore" settings as documented.Karl Palsson
The "ignore" option is correctly loaded. Actually observe it as documented. Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-11-21enable loglevel setting via command lineKarl Palsson
Currently the loglevel is hardcoded to LOG_WARNING, even though there is debug log messages. Allow setting the loglevel via cli option. Include basic help text because we're adding command line options. Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-11-21dhcpv4: Adding DHCP client leasetime request supportHans Dedecker
Add support for DHCPv4 clients proposing a leasetime; proposed leasetime will be accepted if it does not exceed either the pool or configured lease leastime. Further rework the duplicated leasetime logic which was in place. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-11-21dhcpv6-ia: Display infinite lifetime as INT32_MAX in state fileHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-11-21ubus: Fix displayed valid paramater for both DHCPv4 and DHCPv6 leaseHans Dedecker
Fix ubus valid parameter being displayed as a negative number; also display infinite lifetime as INT32_MAX Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-11-21dhcpv4: Keep DHCPv4 assignment lifetime value in sync with assigned leasetimeHans Dedecker
Keep the valid_until assignment parameter in sync with the leasetime assigned to the DHCP client when handling DHCP request message. This guarantees the contents of the ubus dhcp ipv4leases valid parameter is in sync with the client leasetime Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-11-21config: Support infinite as DHCP pool leasetime valueHans Dedecker
Add support for infinite leasetime value; this can be done by specifying "infinite" as leasetime value which is similar to dnsmasq infinite leasetime support. Specifying "infinite" as leasetime is valid for both the host and dhcp uci sections. A DHCPv4/DHCPv6 assignment is now considered infinite if valid_unil holds the value 0. Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2016-10-09Correct a typoMassimiliano Stucchi
2016-09-27odhcpd: remove superfluous log output.Karl Palsson
Drop pointless syslog. The single line just doubles the amount of lines logged to syslog without adding any value. Signed-off-by: Karl Palsson <karlp@etactica.com>
2016-05-19Add per-host leasetime supportSteven Barth
Patch by Daniel Dickinson Signed-off-by: Steven Barth <steven@midlink.org>
2016-01-31Merge pull request #68 from dedeckeh/bugfixesSteven Barth
config: blobmsg_check_attr expects bool type as last argument
2015-12-15config: blobmsg_check_attr expects bool type as last argumentHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2015-11-29Merge pull request #67 from dedeckeh/bugfixesSteven Barth
Fix interface ifname overwrite in case UCI dhcp section contains ifname or networkid parameter
2015-11-27config: Prioritize ifname resolving via ubus over ifname/networkid attributesHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2015-11-27config: Close interface when ifindex cannot be resolvedHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
2015-11-17fall through in error case to clear congestionSteven Barth
2015-11-16Handle netlink ENOBUFS eventsSteven Barth
2015-10-21Merge pull request #63 from willmo/router-lifetimeSteven Barth
Clamp router lifetime per RFC 4861
2015-10-20Don't overflow router lifetimeWill Mortensen
When a prefix lifetime was greater than UINT16_MAX, we would advertise a shorter router lifetime (even potentially 0). Saturate instead.
2015-10-21Merge pull request #62 from willmo/dns-lifetimeSteven Barth
Correctly byteswap DNS lifetimes in RAs
2015-10-20Correctly byteswap DNS lifetimes in RAsWill Mortensen
2015-09-07dhcpv6: use correct length when copying duidSteven Barth
2015-09-07router: don't announce as default router if we aren'tSteven Barth
2015-09-07router: reduce dns lifetime to 10x maximum intervalSteven Barth
2015-09-07dhcpv6: fix mac-handlingSteven Barth
2015-09-01Fixup RAs/DHCPv6 announcing incorrect addressesSteven Barth
2015-08-20router/dhcpv6: use link-local addresses for DNSSteven Barth
2015-08-20router: improve deprecation handlingSteven Barth
2015-08-20Merge pull request #56 from sbyx/revert-46-masterSteven Barth
Revert "RFC: dhcpv4 support openwrt alias ip addr"
2015-08-20Revert "RFC: dhcpv4 support openwrt alias ip addr"Steven Barth
2015-08-20Merge pull request #54 from dedeckeh/bugfixesSteven Barth
Fixes compile issues and infinite lifetimes
2015-08-20Merge pull request #46 from stargieg/masterSteven Barth
RFC: dhcpv4 support openwrt alias ip addr
2015-08-13router: Fix infinite lifetimesHans Dedecker
2015-08-13router: Fix compile issuesHans Dedecker
Fix compile issue due to comparison between signed and unsigned integers
2015-07-27ra/dhcpv6: unify address change handlingSteven Barth
2015-07-24Fix RA lifetimesSteven Barth
2015-07-17dhcpv6: fix socket generation on relay masterSteven Barth
2015-07-17dhcpv6: send relay-forward messages using correct socketSteven Barth
2015-07-15router: unify RA router and DNS lifetimeSteven Barth
2015-07-15router: fixup RA lifetime calculationSteven Barth
2015-07-14router: fix invalid router lifetimeSteven Barth
2015-07-14router: fix logic inversionSteven Barth
2015-07-14ndp: reintroduce address replaySteven Barth
2015-07-14Remove unsolicited unicast RAs, adjust intervalsSteven Barth
2015-07-14ndp: fixup relaySteven Barth
2015-07-14ndp: remove bindtodevice workaroundSteven Barth
2015-07-13odhcpd: remove old workaroundSteven Barth
2015-07-13ndp: fixup route replicationSteven Barth