Skip to content

Conversation

@adamshapiro0
Copy link
Collaborator

recvmsg() and kernel timestamping is not supported in Windows.

recvmsg() and kernel timestamping is not supported in Windows.
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a platform compatibility issue in the p1_capture application where recvmsg() and kernel timestamping were being used on non-Linux platforms (specifically Windows), which don't support these features.

Key changes:

  • Added platform-specific logic to use recvmsg() with ancillary data only on Linux
  • Falls back to standard recv() on non-Linux platforms (Windows, macOS, etc.)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@wbrannon wbrannon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, please check the copilot comment - it may be right in its analysis.

@adamshapiro0
Copy link
Collaborator Author

@wbrannon it was right, more or less. It was saying that the enable timestamp function also needed a check for Windows. I fixed that and added a recv() helper function to abstract away the details.

@adamshapiro0 adamshapiro0 merged commit db1083b into master Nov 13, 2025
16 checks passed
@adamshapiro0 adamshapiro0 deleted the windows branch November 13, 2025 19:33
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.

3 participants