Skip to content

Add support for Big Sur and up - #2

Open
elmeyer wants to merge 4 commits into
packetzero:masterfrom
elmeyer:fix/xnu-7195-descriptors
Open

Add support for Big Sur and up#2
elmeyer wants to merge 4 commits into
packetzero:masterfrom
elmeyer:fix/xnu-7195-descriptors

Conversation

@elmeyer

@elmeyer elmeyer commented Aug 26, 2026

Copy link
Copy Markdown

The socket still exists on macOS Big Sur and in current macOS versions (it's still how Activity Monitor reports network statistics). The data type gained new fields, which is why the existing code broke. This PR adds code to support newer kernels, as well as instructions on what to do when it breaks again with a newer kernel.

elmeyer and others added 4 commits August 25, 2026 13:14
The TCP descriptor gained rx_transfer_size and tx_transfer_size ahead of
activity_bitmap, and both descriptors gained fuuid. Field offsets read by
the handler are asserted at compile time.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@elmeyer

elmeyer commented Aug 26, 2026

Copy link
Copy Markdown
Author

Unfortunately, I developed more changes stacked on top of these, but GitHub isn't smart enough for me to be able to turn them into a stacked PR in this repository (#3 (comment)). Let me know if you are interested in these changes in general, then we can arrange for my branches to be pushed to this repo so a stacked PR can be opened.

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