Commit Graph

144 Commits (f206461153990119066ed08d19414078ac35bbf0)

Author SHA1 Message Date
Steven Barth 6b062ad848 network: shorten names of generated interfaces
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45476
9 years ago
Steven Barth 2eefcd1048 odhcp6c: avoid saving empty RA search domains
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45448
9 years ago
Steven Barth 56573fdb0d odhcp6c: fix some issue discovered by scan-build
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45429
9 years ago
Steven Barth 7e5bf40cac odhcpd: avoid illegal memory access in some corner cases
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45428
9 years ago
Steven Barth 0dbbbda4bf odhcp6c: move IPv6 /proc config to userspace and sanitize
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45358
9 years ago
Steven Barth 4b1257137c odhcp6c: add 464xlat integration, fix dslite integration
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45323
9 years ago
Steven Barth 4f00a51723 odhcp6c: some more code compliance
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45191
9 years ago
Steven Barth bbe5dc48a2 odhcp6c: musl fixes (thanks Felix)
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 45146
9 years ago
Steven Barth 6c0d6a3cb3 odhcp6c: various small fixes
SVN-Revision: 45001
9 years ago
Steven Barth 89e3a8b3b5 odhcp6c: correctly handle renew-replies with short lease times
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 43592
10 years ago
Steven Barth 490a5ebe23 odhcp6c: avoid busylooping with strangely behaving dhcpv6 servers
Thanks to Dave Taht for debugging and thanks to Comcast for
shipping strangely behaving software so I can fix some corner cases.

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

SVN-Revision: 43415
10 years ago
Steven Barth d2e0fa517f odhcp6c: be less verbose by default, increase musl compatibility
SVN-Revision: 43294
10 years ago
John Crispin 74a3a77bcd license info - revert r43155
turns out that r43155 adds duplicate info.

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

SVN-Revision: 43167
10 years ago
John Crispin c10d97484a 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>

SVN-Revision: 43155
10 years ago
Steven Barth bec9d38fa4 Add a few SPDX tags
Signed-off-by: Steven Barth <steven@midlink.org>

SVN-Revision: 43151
10 years ago
Steven Barth a0d9489e84 odhcp6c: avoid some unnecessary big mallocs
SVN-Revision: 43056
10 years ago
Steven Barth 1db4cb9c92 odhcp6c: fix parse errors with some dhcpv6 servers
SVN-Revision: 42869
10 years ago
Steven Barth c7a941cf02 odhcp6c: don't assign addresses or prefixes prematurely
SVN-Revision: 42850
10 years ago
Steven Barth 5fa47c3c04 odhcp6c: ensure signal-safety of signal handlers
SVN-Revision: 42841
10 years ago
Steven Barth 8691d75917 odhcp6c: add route-workaround for broken IPv6-ISPs
Some ISP seem to only do stateful DHCPv6 and not sending RAs.
This is technically broken because plain DHCPv6 doesn't carry routes.

We work around here by faking a default route to the DHCPv6 server
if we do not receive a useful RA from the ISP.

This workaround can be turned off with: option fakeroutes 0

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

SVN-Revision: 42803
10 years ago
Steven Barth 36115321be odhcp6c: work around weird ISP RS behaviour
SVN-Revision: 42674
10 years ago
Steven Barth 75cbca0a40 odhcp6c: enable softwires support by default
SVN-Revision: 42274
10 years ago
Steven Barth 683b622fcd odhcp6c: Send RS with source link-layer address if possible
SVN-Revision: 41778
10 years ago
Steven Barth 54291b16e6 dhcpv6: set default solicit timeout back to 120s
This deliberatly breaks RFC 7083 since its not really user-friendly.

SVN-Revision: 41001
10 years ago
Steven Barth cdbbe71199 odhcp6c: fix last commit
SVN-Revision: 40887
10 years ago
Steven Barth f8c12d4227 odhcp6c: improve passthrough filter
SVN-Revision: 40886
10 years ago
Steven Barth c99065ffab odhcp6c: improve passthru filter
SVN-Revision: 40826
10 years ago
Steven Barth cb8ca4bdb8 odhcp6c: add support for option passthru
SVN-Revision: 40824
10 years ago
Steven Barth 8c53f29220 odhcp6c: some more fixes for map / lw4o6 support
SVN-Revision: 40728
10 years ago
Steven Barth ef9f0fa232 odhcp6c: add preliminary support for MAP provisioning
SVN-Revision: 40604
10 years ago
Steven Barth d2d8970828 odhcp6c: fix recovering from status where all addresses have been lost
SVN-Revision: 40432
10 years ago
Steven Barth a22190340a odhcp6c: add preliminary CER-ID support
SVN-Revision: 40351
10 years ago
Steven Barth 0555ebf66d 6rd / ds-lite: make the firewall-zones of nested-protocols configurable
SVN-Revision: 40020
10 years ago
Steven Barth 7ac0057c1f odhcp6c: pass on delegate-flag on to ds-lite interface
SVN-Revision: 39910
10 years ago
Steven Barth cd695565fb odhcpd/odhcp6c: fix HMAC-MD5 in DHCPv6-Reconfigure
SVN-Revision: 39868
10 years ago
Steven Barth d3f39e89a3 odhcp6c: fix int-overflow after 50d (thx Hauke Mehrtens)
SVN-Revision: 39785
10 years ago
Steven Barth 0a3cb4cdff odhcp6c: several fixes
* Reduce RA/DHCPv6 spam filter to 30s by default and make it configurable
* Don't set nd_ra_{reachable,retransmit] to 0 when received in RAs

SVN-Revision: 39775
10 years ago
Steven Barth f906a7f565 odhcp6c: send reconfigure-accept again to be compliant
SVN-Revision: 39605
11 years ago
Steven Barth 3194834c55 odhcp6c: remove source-restriction from local routes again (broke relaying)
SVN-Revision: 39575
11 years ago
Steven Barth c666dcfe08 odhcp6c: Fix timing and some regressions from yesterday
SVN-Revision: 39502
11 years ago
Steven Barth 05c9507cd3 odhcp6c: Add support for userclass and vendorclass
SVN-Revision: 39478
11 years ago
Steven Barth 02c763c4ab odhcp6c: Revert to slightly modified version of old behaviour
Latest changes broke source-restriction of on-link routes. Restoring
old-behaviour but adding correct source-restrictions which prevents
the offlink handler to remove the on-link route.

SVN-Revision: 39454
11 years ago
Steven Barth a9a0b62785 odhcp6c: improve handling of RA on-link routes and addresses
SVN-Revision: 39451
11 years ago
Steven Barth b965dab148 odhcp6c: several bugfixes and improvements
* Fixed broken stateless-mode (fixes #14863)
* Support for multiple IAIDs, improved server compatibility,
  improved NTP/SNTP support and other fixes (thanks to T-Labs)

SVN-Revision: 39433
11 years ago
Steven Barth 570eb45f23 odhcp6c: fix several small issues + decrease size
SVN-Revision: 39310
11 years ago
Steven Barth fd50416248 odhcp6c: add source routing support
SVN-Revision: 39058
11 years ago
Steven Barth 4bdd40c08b odhcpd/6c: Add config menu for prefix class ext.
SVN-Revision: 38996
11 years ago
Steven Barth dfa9ca772b odhcp6c: Multiple improvements and fixes
* Various RFC compliance fixes (thanks to Hans Dedecker)
* Fix RA spam filter logic causing ipv6 connection issues
* Fix parameters -F and -P being order dependent

SVN-Revision: 38577
11 years ago
Steven Barth d8d0e2c536 odhcp6c: filter similar RAs spammed by some ISPs
SVN-Revision: 38505
11 years ago
Steven Barth 7e13c80b3d odhcp6c: fix parsing of IA_PD adverts
SVN-Revision: 38433
11 years ago
Steven Barth 156ea733d4 odhcp6c: various fixes
* Make SOL_MAX_RT configurable and default back to 120s
* Prefer servers with bigger prefixes (allows to use Comcast /60)
* Don't hang indefinitely if DHCPv6 REQUEST is not answered

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

SVN-Revision: 38393
11 years ago
Steven Barth 6dbfe22601 odhcp6c: improve server selection, introduce "forceprefix" option
SVN-Revision: 38314
11 years ago
Steven Barth 95e9c260bc odhcp6c: validate hop-limit on RAs
SVN-Revision: 38285
11 years ago
Steven Barth 4894800bdd odhcp6c: handle NoAddrsAvail IA-status
SVN-Revision: 38092
11 years ago
Steven Barth 808a1c7808 odhcp6c: Restart when server returns IAID error
SVN-Revision: 38032
11 years ago
Steven Barth eba3ab9ade odhcp6c: Timing workaround for buggy servers
SVN-Revision: 37951
11 years ago
Steven Barth b2a71fedd9 odhcp6c: more compatibility fixes
SVN-Revision: 37907
11 years ago
Steven Barth e3a369e597 odhcp6c: avoid integer overflows in resend logic
SVN-Revision: 37150
11 years ago
Steven Barth b9aa47d5b6 odhcp6c: add missing config parameter
SVN-Revision: 37148
11 years ago
Steven Barth cb66ed972b odhcp6c: Add missing config option "ifaceid"
SVN-Revision: 37033
11 years ago
Steven Barth 5219d38da2 odhcp6c: Add option to override interface identifier in RA-client
SVN-Revision: 36959
11 years ago
Steven Barth 302cf427cb odhcp6c: add sanity checks for NDP and MTU parameters from RAs
SVN-Revision: 36930
11 years ago
Steven Barth 7ae506c7d4 odhcp6c: work around spurious false-positive address DECLINEs
SVN-Revision: 36809
11 years ago
Steven Barth bf582fbb7b odhcp6c: fix handling of multiple RAs in a row
SVN-Revision: 36804
11 years ago
Steven Barth 23b3cebd56 odhcp6c: fix or debug disappearing IPv6 addresses
SVN-Revision: 36745
11 years ago
Steven Barth 24c39ddcf7 odhcp6c: Various fixes * Honour T1 and T2 values from servers better * Correctly send Reconfigure-Accept option in requests
SVN-Revision: 36678
11 years ago
Steven Barth c6f70381c9 odhcp6c: Fix address / prefix expiry logic
SVN-Revision: 36675
11 years ago
Steven Barth a62ca72309 odhcp6c: Fix handling of RAs when no DHCPv6-server is present
SVN-Revision: 36641
11 years ago
Felix Fietkau d481486aad package: fold the IPv6 menu into Network
Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36634
11 years ago
Steven Barth ad93a571c6 odhcp6c: added support for DS-Lite + various fixes
SVN-Revision: 36625
11 years ago
Steven Barth 9c1ed6447b odhcp6c: Make SLAAC-only work without reqprefix=no
Previously if the upstream router did not provide any DHCPv6-service
the wan6 interface would not come up even if RAs were received. The new
behavior allows the wan6 interface to comeup with RA-only configuration
after a timeout of 10s.

SVN-Revision: 36555
11 years ago
Steven Barth 21e4e2a766 odhcp6c: Set default SOL_MAX_RT to 1h
SVN-Revision: 36411
11 years ago
Steven Barth c96c05d549 odhcp6c: Several fixes and improvements * Add preliminary support for RFC 6603 prefix exclusion * Fix reconfigure-support and reconfigure authentication * Set maximum retransmission timeout for solicitations to 2h * Fix a segfault when parsing IA_PD in advertise messages
SVN-Revision: 36382
11 years ago
Steven Barth eedf9e72f9 odhcp6c: Fix a race-condition in RA-handling
Thanks to Markus Stenberg for investigating and providing a fix

SVN-Revision: 36132
11 years ago
Steven Barth 6529cf6cea odhcp6c: minor bug fixes
SVN-Revision: 36123
11 years ago
Steven Barth eeb88a1df3 odhcp6c: Fix metric for on-link prefix routes
SVN-Revision: 36094
11 years ago
Steven Barth 3ebdd3b330 odhcp6c: fix preference handling, custom client-ID * thanks to mbidewell for investigating
SVN-Revision: 36083
11 years ago
Steven Barth 39a001dc69 odhcp6c: various bugfixes * Don't prematurely send RENEW / REBIND when T1 or T2 is > 1 day * Add "norelease" option to not send a RELEASE when stopping
SVN-Revision: 35902
12 years ago
Steven Barth 99b69fd9c5 odhcp6c: allow setting a user-provided prefix as well
SVN-Revision: 35570
12 years ago
Steven Barth b8c796fbd7 odhcp6c: Various bugfixes * Don't send undesired suggestions for preferred and valid lifetimes * Be less verbose in logging
SVN-Revision: 35553
12 years ago
Steven Barth 13544edce7 odhcp6c: Fix timing issues
SVN-Revision: 35472
12 years ago
Steven Barth 6be5a5a73d odhcp6c: Fix RENEW and REBIND requests
SVN-Revision: 35454
12 years ago
Steven Barth e2193a69c8 odhcp6c: allow IPv6-config via SLAAC-only if no prefix is requested
SVN-Revision: 35421
12 years ago
Steven Barth 9a62439c28 odhcp6c: switch to userspace RA-handling and offload address assignment to netifd
SVN-Revision: 35419
12 years ago
Steven Barth 1a0b207d61 odhcp6c: remove IPv6 forwarding-sysctl workaround
SVN-Revision: 35370
12 years ago
Steven Barth e964fa5d8f odhcp6c: work-around for proto-script to avoid loosing the default route
SVN-Revision: 35345
12 years ago
Steven Barth f1fd0f8278 odhcp6c: Fix address assignment with infinite validity
SVN-Revision: 35258
12 years ago
Steven Barth 5a122f7e5f odhcp6c: Fix parsing more than one DNS server
SVN-Revision: 35215
12 years ago
Steven Barth 66fa83d211 odhcp6c: Detect a different MAC if interface has none * Fixes DHCPv6 behaviour over PPP and similar
SVN-Revision: 35189
12 years ago
Steven Barth 0cd21ca785 odhcp6c: Send RS on start
SVN-Revision: 35137
12 years ago
Steven Barth f0df2006af odhcp6c: Add preliminary proto-handler
SVN-Revision: 35135
12 years ago
Steven Barth c7d9d7c952 odhcp6c: Add support for SNTP and SIP options
SVN-Revision: 34984
12 years ago
Steven Barth f36c3067c6 odhcp6c: Fix build on arch where char is unsigned
SVN-Revision: 34856
12 years ago
Steven Barth e6e6e0d152 odhcp6c: Add new embedded DHCPv6 client
SVN-Revision: 34421
12 years ago