Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get rid of CGO in gopacket/afpacket #1

Merged
merged 1 commit into from
Jul 9, 2021
Merged

Get rid of CGO in gopacket/afpacket #1

merged 1 commit into from
Jul 9, 2021

Conversation

yalegko
Copy link
Member

@yalegko yalegko commented Jun 23, 2021

All types needed by gopacket/afpacket are provided by x/sys/unix package, so
we can easily avoid CGO dependency here.

Ref links for types migration:

All types needed by gopacket/afpacket are provided by x/sys/unix package, so
we can easily avoid CGO dependency here.

Ref links for types migration:
- C header: https://github.com/torvalds/linux/blob/master/include/uapi/linux/if_packet.h
- CGO mappings: https://github.com/golang/sys/blob/master/unix/linux/types.go
- Generated types: https://github.com/golang/sys/blob/master/unix/ztypes_linux.go
@yalegko yalegko merged commit 2210b98 into master Jul 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant