# std: add in_pktinfo and in6_pktinfo structs defs · gitcafe/zig

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

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

Visibility: public

Requested revision: 3e372f19944ca2b3251c9e3295722d24c945302f

Requested commit: 3e372f19944ca2b3251c9e3295722d24c945302f

Commit: 3e372f19944ca2b3251c9e3295722d24c945302f

Tree: 721fd55a7221db443b3e5edbd62a9d58addd33b8

Author: Brandon Black

Committer: Brandon Black

## Message

```
std: add in_pktinfo and in6_pktinfo structs defs

in_pktinfo is only used on a few targets for the IP_PKTINFO
sockopt, as many BSDs use an alternate mechanism (IP_RECVDSTADDR)
that doesn't require a special struct.  in6_pktinfo is more
universal.

```

## Parents

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

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