Swift Package Index


A high-level Swift interface to capturing network traffic on macOS using the Berkeley Packet Filter interface


  • The latest stable release is 0.2.1. Released 26 days ago.
  • The last commit to main was 26 days ago.

Swift Version Compatibility

  • 0.2.1 and main
    5.3
    5.2
    5.1
    5.0
    4.2
Full build results

Platform Compatibility

  • 0.2.1 and main
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS
Full build results

PacketCaptureBPF

PacketCaptureBPF is a high-level Swift interface to capture network traffic on MacOS using the Berkeley Packet Filter interface

PacketCaptureBPF uses Berkley Packet Filter Devices to read raw bytes from a network interface eliminating the need for an external library such as libpcap which causes significant code signing issues on MacOS BigSur (11.1+) because it further locks down the OS for security reasons.

To Do list:
Write initial code...