diff options
| author | Corentin Henry <corentinhenry@gmail.com> | 2018-11-19 09:33:02 -0800 |
|---|---|---|
| committer | Corentin Henry <corentinhenry@gmail.com> | 2019-04-20 11:19:10 +0200 |
| commit | 1f0aa4043b6051602f016b61a393ef5981b5b831 (patch) | |
| tree | bab6ad14c648c432c09abd386fde1ecda6b4e8e5 /src/test/ui/thinlto | |
| parent | 5aea18411ed6baf471af0799f8926f105009dfcc (diff) | |
| download | rust-1f0aa4043b6051602f016b61a393ef5981b5b831.tar.gz rust-1f0aa4043b6051602f016b61a393ef5981b5b831.zip | |
std::net: add Ipv6Addr::is_unicast_link_local_strict()
RFC 4291 is a little unclear about what is a unicast link local address. According to section 2.4, the entire fe80::/10 range is reserved for these addresses, but section 2.5.3 defines a stricter format for such addresses. After a discussion[0] is has been decided to add a different method for each definition, so this commit: - renames is_unicast_link_local() into is_unicast_link_local_strict() - relaxed the check in is_unicast_link_local() [0]: https://github.com/rust-lang/rust/issues/27709#issuecomment-400370706
Diffstat (limited to 'src/test/ui/thinlto')
0 files changed, 0 insertions, 0 deletions
