Commit Graph

69 Commits (325bc988756e8ecb159c6e0a06d8dad631cac6e7)

Author SHA1 Message Date
Steven Barth 3edb793f70 odhcpd: fix accidental logic inversion
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45435 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-04-14 14:21:52 +00:00
Steven Barth 55f5e92b12 odhcpd: avoid illegal memory access in some corner cases
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45428 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-04-14 08:31:53 +00:00
Steven Barth 6f26347a75 odhcpd: send current hop-limit by default in RAs
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45359 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-04-10 11:52:42 +00:00
Steven Barth 01917bdbb6 odhcpd: fix infinite lifetime handling in dhcpv6
thanks to Arjen de Korte

Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45279 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-04-06 10:50:54 +00:00
Steven Barth 5acfbfdfb9 odhcpd: compile fixes
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45192 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-31 17:30:56 +00:00
Steven Barth 9fbf84c94e odhcpd: fix default dhcpv6 behavior for non-/64
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45148 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-30 08:53:22 +00:00
Steven Barth fbe1ecc0ec odhcpd: fix musl build, change default DHCPv6 behavior
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45147 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-30 08:49:47 +00:00
Steven Barth 9c221b1880 odhcpd: improvements for DHCPv4 and compile fixes
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@44619 3c298f89-4303-0410-b956-a3cf2f4a3e73
2015-03-06 14:41:07 +00:00
Steven Barth f2d1be9815 odhcpd: disable flash-renumbering hack for non-64 prefixes
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43202 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-06 13:37:50 +00:00
John Crispin 85c10a8a6a license info - revert r43155
turns out that r43155 adds duplicate info.

Signed-off-by: John Crispin <blogic@openwrt.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43167 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 09:56:44 +00:00
John Crispin b8df8ca970 Add more license tags with SPDX identifiers
Note, that licensing stuff is a nightmare: many packages does not clearly
state their licenses, and often multiple source files are simply copied
together - each with different licensing information in the file headers.

I tried hard to ensure, that the license information extracted into the OpenWRT's
makefiles fit the "spirit" of the packages, e.g. such small packages which
come without a dedicated source archive "inherites" the OpenWRT's own license
in my opinion.

However, I can not garantee that I always picked the correct information
and/or did not miss license information.

Signed-off-by: Michael Heimpold <mhei@heimpold.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43155 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-03 08:01:08 +00:00
Steven Barth 2bf2015c24 Add a few SPDX tags
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@43151 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-11-02 12:20:54 +00:00
Steven Barth 3cb3abd960 odhcpd: fix regression in dhcpv6 t1 and t2 calculation
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42951 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-18 15:47:31 +00:00
Steven Barth ea44512369 odhcpd: multiple fixes
* Rewrite ndp proxy using kernel proxying
* Aid flash-renumbering in hybrid DHCPv6-mode
* Unicast RAs to RS senders
* Add support for router address

Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42944 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-10-17 11:18:52 +00:00
Steven Barth e4c755d65f odhcpd: fix segfault when parsing domain options in UCI
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42663 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-09-25 11:53:12 +00:00
Steven Barth 7bbfb59996 odhcpd: fix static lease behavior with dhcpv4
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42270 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-24 08:12:57 +00:00
Steven Barth 8d22f9d0f4 odhcpd: various DHCPv4 and DHCPv6 fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42217 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-19 05:58:51 +00:00
Steven Barth b1603fdc88 odhcpd: improve DHCPv6-PD detection
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42160 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-13 14:57:07 +00:00
Steven Barth 269de3d2b3 odhcpd: multiple DHCPv4 improvements (thx Christian Mehlis)
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42153 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-12 13:30:04 +00:00
Steven Barth f34aeeedd4 odhcpd: avoid logspam in certain corner cases
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42067 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-08 08:45:33 +00:00
Steven Barth 9ea186f882 odhcpd: write host-entries for all leased IPv6 addresses
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42065 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-08 05:30:59 +00:00
Steven Barth 4aa52b6871 odhcpd: update hostfile more often
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42042 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 18:07:37 +00:00
Steven Barth b1be939288 odhcpd: correct incorrect commit-id in last commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42026 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 05:50:44 +00:00
Steven Barth bd218a4aaf odhcpd: skip MSRs in RAs for prefixes with same size as DP
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@42024 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-08-07 05:34:02 +00:00
Steven Barth 1f81f496a7 odhcpd: don't lose downstream routes for managed PD
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41816 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-23 21:14:56 +00:00
Steven Barth 115818ca1b odhcpd: revert NDP relay rewrite (performance issue still fixed)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41808 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-22 21:52:20 +00:00
Steven Barth 3b82d0f81a odhcpd: fix typo in ubus integration (thanks Markus Stenberg)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41796 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-21 21:57:15 +00:00
Steven Barth 82dcb5a1d6 odhcpd: rewrite NDP proxy feature
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41703 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-17 19:11:17 +00:00
Steven Barth 399db2dbe9 odhcpd: disable packet socket if unneeded to preserve performance
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41644 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-14 13:39:03 +00:00
Steven Barth 6ac36eaf7f odhcpd: some minor DHCP/DHCPv6 fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41432 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-07-01 08:15:28 +00:00
Steven Barth d5441bd8c8 odhcpd: fix build failure with musl
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41409 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-30 07:56:33 +00:00
Steven Barth c4c0b61fb7 odhcpd: improve static DHCPv4 leases (thanks arnd)
Signed-off-by: Steven Barth <steven@midlink.org>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41260 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-18 12:10:10 +00:00
Steven Barth 6dca6d5903 odhcpd: don't enable relaying by default anymore
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41228 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-17 13:05:24 +00:00
Steven Barth abd3b2c90e odhcpd: also honor leasetime for dhcpv6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41226 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-17 07:59:15 +00:00
Steven Barth 0ef8d8758c odhcpd: Improve NotOnLink-behavior and make hostid more convient to configure
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41225 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-17 07:44:24 +00:00
Steven Barth 86f216aa9e odhcpd: add more consistent hostname-writing
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41211 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-16 16:45:05 +00:00
Steven Barth 4a0999f156 odhcpd: update hostfile more often
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41197 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-16 09:09:13 +00:00
Steven Barth 0770d7d421 odhcpd: fix dhcpv4 hostname attribute handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41196 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-16 08:33:49 +00:00
Steven Barth fba1e0b046 odhcpd: accept FQDN as search domain
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41194 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-15 22:49:58 +00:00
Steven Barth 868a9c8703 odhcpd: use search domain instead of domain attribute
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41152 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-12 09:22:07 +00:00
Steven Barth 0b9b716083 odhcpd: various regression fixes (thanks Hans Dedecker)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41079 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-10 08:47:15 +00:00
Steven Barth e14ff4aa6b odhcpd: improve DHCPv4 range defaults
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41038 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-07 10:35:34 +00:00
Steven Barth f1f2e5a8ba odhcpd: add configuration for userclass-filter
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40900 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-06-02 07:08:16 +00:00
Steven Barth 2a072876d2 odhcpd: Fix a segfault in DHCPv6 option handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40881 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-29 21:01:42 +00:00
Steven Barth 1ee0b0a2ab odhcpd: add support for configuring raw dhcpv6 options
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40862 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-05-26 17:08:57 +00:00
Steven Barth c4d4aef229 odhcpd: better dhcpv6 client-compatibility (thanks Hans Dedecker)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40567 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-24 09:36:01 +00:00
Steven Barth 1898acd9b4 odhcpd: use correct defaults for interfaces not in UCI
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40435 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-09 12:29:43 +00:00
Steven Barth c580cc13d7 odhcpd: improve managed PD
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40395 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-06 14:34:45 +00:00
Steven Barth 72b2e82419 odhcpd: add preliminary support for managed DHCPv6-PD and CER-ID
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40355 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-04-01 18:52:09 +00:00
Steven Barth c8564bfc33 odhcpd: fix more segfaults + ubus interaction
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@39960 3c298f89-4303-0410-b956-a3cf2f4a3e73
2014-03-20 12:25:17 +00:00