Skip to content

Update deps and fix several issues#13

Merged
brycekahle merged 13 commits intomasterfrom
bryce.kahle/safe-slice
Apr 29, 2026
Merged

Update deps and fix several issues#13
brycekahle merged 13 commits intomasterfrom
bryce.kahle/safe-slice

Conversation

@brycekahle
Copy link
Copy Markdown
Member

@brycekahle brycekahle commented Apr 23, 2026

  • Update min go version to 1.25
  • Update dependencies
  • Use unsafe.Slice instead of custom makeSlice
  • Use unix.Setsockopt* and unix.Getsockopt* functions instead of custom versions
  • Fix htons to handle big-endian systems
  • Fix VLAN handling to check status bit first
  • Fix TPacketV3 block advancement to increment by block size NOT frame size * num frames per block (they don't have to be equal)
  • Fix TPacketV3 packet advance to always use tp_next_offset (all code I could find does this)
  • Fix unsafe.Pointer usage to conform to allowed patterns.
  • Minor style issues

@brycekahle brycekahle force-pushed the bryce.kahle/safe-slice branch from 19fe26f to c0a01eb Compare April 29, 2026 16:39
@brycekahle brycekahle merged commit ee5a326 into master Apr 29, 2026
1 check passed
@brycekahle brycekahle deleted the bryce.kahle/safe-slice branch April 29, 2026 16:40
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.

2 participants