summaryrefslogtreecommitdiffhomepage
path: root/src
AgeCommit message (Collapse)Author
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-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>
2015-12-15config: blobmsg_check_attr expects bool type as last argumentHans Dedecker
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com>
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-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-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-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
2015-07-13router: only send RAs to neighbors if unsolicitedSteven Barth
2015-07-13router: only send direct RAs to link-local addressesSteven Barth
2015-07-07main: fix missing parameter while iterating neighborsSteven Barth
2015-07-07router: also send RAs to every known neighborSteven Barth
2015-07-07ndp: replay on-link routes instead of address assignmentsSteven Barth
2015-06-30ra: keep alive neighbor entries so we can send unicast RAs in the futureSteven Barth
2015-06-22dhcpv4: remove unused addr_attrs structPatrick Grimm
Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
2015-06-22dhcpv4: add ifdef ubus for dhcp4 ipPatrick Grimm
Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
2015-06-19dhcpv4: add in_addr dhcpv4_mask and in_addr dhcpv4_addr to struct interfacePatrick Grimm
Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
2015-06-18dhcpv4: fix unitialization of maskPatrick Grimm
Signed-off-by: Patrick Grimm <patrick@lunatiki.de>
2015-06-18dhcpv4: fix char ubus_get_address4 int ubus_get_mask4 functionPatrick Grimm
Signed-off-by: Patrick Grimm <patrick@lunatiki.de>