# Use libc if_nametoindex if available when parsing IPs · gitcafe/zig

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

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

Visibility: public

Requested revision: 66fe5bb0d8c5e6279e2b68459b6b37d9244210bc

Requested commit: 66fe5bb0d8c5e6279e2b68459b6b37d9244210bc

Commit: 66fe5bb0d8c5e6279e2b68459b6b37d9244210bc

Tree: 0de1bbb4cef77af19e3fb20abf32f20fffd76ef3

Author: John Schmidt

Committer: John Schmidt

## Message

```
Use libc if_nametoindex if available when parsing IPs

Fixes https://github.com/ziglang/zig/issues/10521 and makes a couple of
additional tests pass when linking libc.

```

## Parents

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

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