Commit Graph

96 Commits (d8eb7a4cafa663023693b2204165c601bbee43df)

Author SHA1 Message Date
Steven Barth 528c719a3f 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.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36555 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-05-06 10:20:43 +00:00
Steven Barth d7fe9e70d8 6relayd: Fix generation of RA-messages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36419 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-24 18:22:08 +00:00
Steven Barth 8eaa488397 6relayd: update package description
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36413 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-24 07:21:42 +00:00
Steven Barth 812209d870 odhcp6c: Set default SOL_MAX_RT to 1h
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36411 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-24 05:02:45 +00:00
Steven Barth 0fd7fb5a84 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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36382 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-22 19:40:01 +00:00
Steven Barth e0e6b055fe 6relayd: Add DHCPv6-PD server support, fix relaying in stateful mode
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36381 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-22 19:39:55 +00:00
Steven Barth 936588ed30 Remove obsoleted ipv6-support meta-package
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36279 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-04-09 09:45:51 +00:00
Steven Barth e2a416671c odhcp6c: Fix a race-condition in RA-handling
Thanks to Markus Stenberg for investigating and providing a fix

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36132 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-03-26 13:39:17 +00:00
Steven Barth 795bb7a15c odhcp6c: minor bug fixes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36123 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-03-25 10:58:48 +00:00
Steven Barth edbf7afcd3 odhcp6c: Fix metric for on-link prefix routes
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36094 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-03-20 09:26:52 +00:00
Steven Barth 72786daa1b odhcp6c: fix preference handling, custom client-ID
* thanks to mbidewell for investigating

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36083 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-03-18 07:24:49 +00:00
Steven Barth 0bf76485e2 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

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35902 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-03-08 07:04:38 +00:00
Steven Barth c3ba5abe93 6relayd: Fix illegal memory accesses
Spurious errors when receiving netlink-messages lead to unhandled errors
which caused SIGBUS. Thanks to tdavis for debugging

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35836 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-28 16:37:20 +00:00
Steven Barth 4ff987eec6 6relayd: various fixes
cap preferred and valid lifetimes at more reasonable limits
decrease memory usage (remove unnecessary book-keeping)

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35835 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-28 14:57:19 +00:00
Steven Barth 13ada38511 6relayd: Fix config behaviour for rewrite_dns_addr option
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35804 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-26 12:50:52 +00:00
Steven Barth 579f6c4632 6relayd: compatibility with broken IPv6 devices
* Announce ULA as deprecated if other addresses are available
* Allow the announced DNS-server to be overwritten

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35803 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-26 12:42:53 +00:00
Steven Barth 1fb35f7831 6relayd: Fix possible memory corruption issue
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35673 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-19 12:04:41 +00:00
Steven Barth a96a74fc06 6relayd: Workaround potential signal handling issue
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35665 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-18 12:50:36 +00:00
Steven Barth d0fe67f1df odhcp6c: allow setting a user-provided prefix as well
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35570 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-12 08:23:54 +00:00
Steven Barth de9ca73143 odhcp6c: Various bugfixes
* Don't send undesired suggestions for preferred and valid lifetimes
* Be less verbose in logging

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35553 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-11 12:30:16 +00:00
Steven Barth f5b834c1bd odhcp6c: Fix timing issues
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35472 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-03 17:26:40 +00:00
Steven Barth 15d5fae260 odhcp6c: Fix RENEW and REBIND requests
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35454 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-02 10:44:13 +00:00
Steven Barth deed0b0198 odhcp6c: allow IPv6-config via SLAAC-only if no prefix is requested
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35421 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-01 13:38:47 +00:00
Steven Barth 884f9354e3 odhcp6c: switch to userspace RA-handling and offload address assignment to netifd
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35419 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-01 12:28:39 +00:00
Steven Barth 977543229a 6relayd: Fix announced router flags and IPv6 procfs-configuration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35418 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-02-01 12:28:34 +00:00
Steven Barth 7bc0be4f38 6in4: fix typo in last commit
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35409 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-30 09:07:23 +00:00
Steven Barth 26312e0ff3 6in4: work around hanging wget process
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35408 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-30 09:05:53 +00:00
Steven Barth 64667abb9d 6relayd: remove IPv6 forwarding-sysctl workaround
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35371 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-29 10:13:49 +00:00
Steven Barth 898917f616 odhcp6c: remove IPv6 forwarding-sysctl workaround
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35370 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-29 10:13:44 +00:00
Steven Barth e486e3e8b0 odhcp6c: work-around for proto-script to avoid loosing the default route
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35345 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-28 13:53:43 +00:00
Steven Barth 1d9e351fff ipv6-support: don't overwrite existing setting across reflashs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35302 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-23 08:15:09 +00:00
Steven Barth 7057d10c26 6relayd: fix shell library includes in init-script
Thanks to Daniel Golle

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35262 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-21 11:27:03 +00:00
Steven Barth 180a1254ca 6relayd: avoid a race-condition with looping RAs
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35260 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-21 10:42:31 +00:00
Steven Barth 7b90a50edb odhcp6c: Fix address assignment with infinite validity
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35258 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-21 07:58:58 +00:00
Steven Barth 2a6b173e6d ipv6-support: adapt UCI defaults to new ordering
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35219 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-18 12:52:51 +00:00
Steven Barth edeb64dc65 odhcp6c: Fix parsing more than one DNS server
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35215 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-18 08:21:35 +00:00
Steven Barth 1184a39eb6 ipv6-support: Rename enable-ipv6 UCI defaults
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35205 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-17 16:16:06 +00:00
Steven Barth 777625776a odhcp6c: Detect a different MAC if interface has none
* Fixes DHCPv6 behaviour over PPP and similar

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35189 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-17 08:29:01 +00:00
Steven Barth 4713aef3ff ipv6-support: Switch to native IPv6 support
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35174 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-15 13:08:19 +00:00
Steven Barth ca6e8fdcec 6rd: add support for native IPv6 prefix handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35173 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-15 13:08:14 +00:00
Steven Barth cbfa80a7d3 6to4: add support for native IPv6 prefix handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35172 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-15 13:08:10 +00:00
Steven Barth 80abeea6ad 6in4: add support for native IPv6 prefix handling
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35171 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-15 13:08:05 +00:00
Steven Barth d9d045a475 6relayd: add suitable default configuration
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35170 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-15 13:08:00 +00:00
Steven Barth 326a6a6193 6distributed: Remove obsolete service (replaced by netifd)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35169 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-15 13:07:56 +00:00
Steven Barth 8b19f35255 odhcp6c: Send RS on start
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35137 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-13 18:06:24 +00:00
Steven Barth 24df9aecc1 odhcp6c: Add preliminary proto-handler
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35135 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-13 17:35:09 +00:00
Steven Barth c5752d0129 ipv6-support: don't use disable_ipv6
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35134 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-13 17:25:43 +00:00
Steven Barth ae972de3fb 6relayd: Rewrite init-script logic
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@35133 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-13 17:25:38 +00:00
Steven Barth e1c79f5058 ipv6-support: Update iteration
* Add support for blocking forwarding while address assignments
* Fix relay restarting function

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34985 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-02 23:05:44 +00:00
Steven Barth 1e7f1c6ab7 odhcp6c: Add support for SNTP and SIP options
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@34984 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-02 23:05:39 +00:00