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

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

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

Visibility: public

Requested revision: dac7ae1e438bcd9d5051fc53874002ee06278466

Requested commit: dac7ae1e438bcd9d5051fc53874002ee06278466

Commit: dac7ae1e438bcd9d5051fc53874002ee06278466

Tree: 0a34ba87624989eb0f4ab0f56fe05924218b2dc6

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

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

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