Skip to content

Feature Request: macOS (Mac Studio) support for packet capture via libpcap #11450

@zy84338719

Description

@zy84338719

Background

We have a batch of Mac Studio devices that we would like to use for network traffic monitoring and packet capture using DeepFlow.

Current Situation

From our investigation and PR #11449, we understand that:

  1. DeepFlow agent primarily targets Linux with eBPF-based observability
  2. Windows and Android have basic support
  3. macOS support is limited/incomplete

Our Use Case

We have multiple Mac Studio devices (Apple Silicon M1/M2 Max/Ultra) that we want to use for:

  1. Local network traffic capture on macOS
  2. Development and testing of network applications
  3. Traffic analysis in macOS environments

Proposed Solution

We notice that PR #11449 adds basic macOS support using libpcap for packet capture. This is exactly what we need:

  • libpcap is mature and well-supported on macOS
  • It works well on Apple Silicon
  • It provides sufficient performance for our monitoring needs

Feature Requests

  1. Complete macOS libpcap support - Ensure the agent can properly capture packets on macOS interfaces
  2. Apple Silicon optimization - Native ARM64 support for M1/M2 chips
  3. Interface selection - Ability to specify which macOS network interfaces to monitor
  4. BPF filter support - Allow custom BPF filters for packet capture
  5. Performance tuning - Optimize libpcap buffer sizes for high-throughput scenarios

Environment

  • Hardware: Mac Studio (M1 Max, M2 Ultra)
  • OS: macOS Ventura / Sonoma
  • Network: Multiple interfaces (Ethernet, Thunderbolt, Wi-Fi)
  • Traffic volume: Moderate to high (1-10 Gbps in some scenarios)

Questions

  1. Is there a timeline for official macOS support?
  2. Are there any known limitations with libpcap on macOS that we should be aware of?
  3. Would you be interested in accepting more contributions for macOS-specific features?

Related

Willingness to Contribute

We are willing to contribute code, testing, and documentation for macOS support. Our team has experience with:

  • libpcap/pcap development
  • macOS network stack
  • Apple Silicon optimization

Thank you for considering this feature request!

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions