Skip to content
  1. Dec 26, 2014
  2. Dec 25, 2014
  3. Dec 24, 2014
  4. Dec 23, 2014
  5. Dec 22, 2014
  6. Dec 21, 2014
  7. Dec 20, 2014
  8. Dec 19, 2014
  9. Dec 18, 2014
  10. Dec 17, 2014
  11. Dec 16, 2014
    • Patrick Monnerat's avatar
      IPV6: address scope != scope id · 9081014c
      Patrick Monnerat authored
      There was a confusion between these: this commit tries to disambiguate them.
      - Scope can be computed from the address itself.
      - Scope id is scope dependent: it is currently defined as 1-based local
        interface index for link-local scoped addresses, and as a site index(?) for
        (obsolete) site-local addresses. Linux only supports it for link-local
        addresses.
      The URL parser properly parses a scope id as an interface index, but stores it
      in a field named "scope": confusion. The field has been renamed into "scope_id".
      Curl_if2ip() used the scope id as it was a scope. This caused failures
      to bind to an interface.
      Scope is now computed from the addresses and Curl_if2ip() matches them.
      If redundantly specified in the URL, scope id is check for mismatch with
      the interface index.
      
      This commit should fix SF bug #1451.
      9081014c