0009-Revert-odhcp6c-work-around-RIOs-matching-PIOs-as-sent-by-some-apple-routers.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. From: Matthias Schiffer <mschiffer@universe-factory.net>
  2. Date: Sun, 21 Jun 2015 05:47:46 +0200
  3. Subject: Revert "odhcp6c: work around RIOs matching PIOs as sent by some apple routers"
  4. This reverts commit c46402e106ee924e3861f9685d6187552e7f8f2b.
  5. diff --git a/package/network/ipv6/odhcp6c/Makefile b/package/network/ipv6/odhcp6c/Makefile
  6. index d0935eb..a90f5ce 100644
  7. --- a/package/network/ipv6/odhcp6c/Makefile
  8. +++ b/package/network/ipv6/odhcp6c/Makefile
  9. @@ -8,7 +8,7 @@
  10. include $(TOPDIR)/rules.mk
  11. PKG_NAME:=odhcp6c
  12. -PKG_VERSION:=2015-06-10
  13. +PKG_VERSION:=2015-06-09
  14. PKG_RELEASE=$(PKG_SOURCE_VERSION)
  15. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  16. diff --git a/package/network/ipv6/odhcp6c/files/dhcpv6.script b/package/network/ipv6/odhcp6c/files/dhcpv6.script
  17. index 84eb706..650c9b2 100755
  18. --- a/package/network/ipv6/odhcp6c/files/dhcpv6.script
  19. +++ b/package/network/ipv6/odhcp6c/files/dhcpv6.script
  20. @@ -88,10 +88,6 @@ setup_interface () {
  21. if [ -z "$gw" ]; then
  22. proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid"
  23. -
  24. - # work around if there is a PIO matching a RIO
  25. - # Linux seems to prefer source-dest over dest-only even if metric is higher
  26. - proto_add_ipv6_route "$addr" "$mask" "$gw" "$metric" "$valid" "$addr/$mask"
  27. else
  28. for prefix in $PREFIXES $ADDRESSES; do
  29. local paddr="${prefix%%,*}"