# Resolve scope IDs using IPv6 sockets · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/a032fd01e88be2c6e8d0cfb0ccd3d9859c9dffdc)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: a032fd01e88be2c6e8d0cfb0ccd3d9859c9dffdc

Requested commit: a032fd01e88be2c6e8d0cfb0ccd3d9859c9dffdc

Commit: a032fd01e88be2c6e8d0cfb0ccd3d9859c9dffdc

Tree: 56a13b671117c0d3c815c5b2c7c0b55f8c4dbec4

Author: Stephen Gregoratto

Committer: Andrew Kelley

## Message

```
Resolve scope IDs using IPv6 sockets

On certain systems (Solaris), resolving the scope id from an interface
name can only be done on AF_INET-domain sockets. While we're here,
simplify the test while we're here, since there's only one address.

Also note that the loopback interface name is not stable across OSs.
BSDs and Solaris use `lo0` whilst Linux uses `l0`.

```

## Parents

- [1e7009a9d982faa466517063452ed7d299b66966](https://git.cafe/gitcafe/zig/commit/1e7009a9d982faa466517063452ed7d299b66966?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/a032fd01e88be2c6e8d0cfb0ccd3d9859c9dffdc?format=markdown)
