# Io.net: rework IPv6 parsing and printing · gitcafe/zig

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

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

Visibility: public

Requested revision: d776a6bbbe69618d5a8d2583eda47d98755163f9

Requested commit: d776a6bbbe69618d5a8d2583eda47d98755163f9

Commit: d776a6bbbe69618d5a8d2583eda47d98755163f9

Tree: dba67161bbd0fa2fbb95cdee5e79d50d8d3410f3

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
Io.net: rework IPv6 parsing and printing

extract pure functional logic into pure functions and then layer the
scope crap on top properly

the formatting code incorrectly didn't do the reverse operation
(if_indextoname). fix that with some TODO panics

```

## Parents

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

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