You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
540 B

  1. diff -Naur tayga-0.9.2.orig/addrmap.c tayga-0.9.2/addrmap.c
  2. --- tayga-0.9.2.orig/addrmap.c 2011-05-25 15:11:30.000000000 +0100
  3. +++ tayga-0.9.2/addrmap.c 2020-07-04 16:24:23.397081572 +0100
  4. @@ -44,7 +44,9 @@
  5. int validate_ip6_addr(const struct in6_addr *a)
  6. {
  7. /* Well-known prefix for NAT64 */
  8. - if (a->s6_addr32[0] == WKPF && !a->s6_addr32[1] && !a->s6_addr32[2])
  9. + if (a->s6_addr32[0] == WKPF &&
  10. + (!a->s6_addr32[1] || (a->s6_addr16[2] == htonl(0x0001)))
  11. + && !a->s6_addr32[2])
  12. return 0;
  13. /* Reserved per RFC 2373 */