You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/threatmate/darwinpacket

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/threatmate/darwinpacket

v0.0.0-20230427170615-0402c5f7a79e
Source
Go
Version published
Created
Source

packet Test Status Go Reference Go Report Card

Package darwinpacket provides access to MacOS sockets via BPF.

It provides a net.PacketConn interface that can be used, in particular, with github.com/mdlayher/arp.

Golang GOOS targets:

  • darwin

Usage

conn, err := darwinpacket.Listen(iface, protocol, &darwinpacket.Config{})

History

github.com/mdlayher has specifically said that github.com/mdlayher/packet will only support Linux and recommended that we create variants for any other operating systems that we are interested in (in this case, MacOS).

This package is based on github.com/synfinatic/packet, but this version specifically limits support to MacOS in keeping with github.com/mdlayher's design wishes.

FAQs

Package last updated on 27 Apr 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts