FlareStart
HomeNewsHow ToSources
FlareStart

Where developers start their day. All the tech news & tutorials that matter, in one place.

Quick Links

  • Home
  • News
  • Tutorials
  • Sources
  • Privacy Policy

Connect

© 2026 FlareStart. All rights reserved.

Back to articles
Writing a BPF packet filter on macOS in Go
How-ToSystems

Writing a BPF packet filter on macOS in Go

via Dev.toNikita Vakula1mo ago

Without filter With BPF filter Network Userspace Network Userspace ┌───────┐ ┌─────────┐ ┌───────┐ ┌─────────┐ │ ARP │──→│ ARP │ │ ARP │──→│ ARP │ │ IPv4 │──→│ IPv4 │ │ IPv4 │ │ reply │ │ ARP │──→│ ARP │ │ ARP │ │ │ │ IPv6 │──→│ IPv6 │ │ IPv6 │ │ │ │ IPv4 │──→│ IPv4 │ │ IPv4 │ │ │ │ ARP │──→│ ARP │ │ ARP │ │ │ │ ... │──→│ ... │ │ ... │ │ │ └───────┘ └─────────┘ └───────┘ └─────────┘ ~10,000 ~10,000 ~10,000 ~100 packets copied packets copied App filters in userspace Kernel filters before copy The problem: discovering VM IP addresses without a guest agent In a recent change to qcontroller, I removed the dependency on QEMU Guest Agent (QGA) for discovering a VM's IP address. Previously, users had to install QGA inside every VM—easy enough with cloud-init, but still a hard requirement just to answer the question "what IP did this VM get?" The alternative: ARP scanning. I already control the MAC addresses assigned to VMs, so I can periodically broadcast ARP requests on the virtual network i

Continue reading on Dev.to

Opens in a new tab

Read Full Article
27 views

Related Articles

How-To

The most important 40 mcq with its answers How to use Android visual studio to make a mobile app

Medium Programming • 4h ago

What is Agent Script? How to Build Agents with It in Agentforce
How-To

What is Agent Script? How to Build Agents with It in Agentforce

Medium Programming • 4h ago

I Coded 3 Famous Trading Strategies in Pine Script and Backtested All of Them. None Passed.
How-To

I Coded 3 Famous Trading Strategies in Pine Script and Backtested All of Them. None Passed.

Medium Programming • 5h ago

Belkin’s battery-equipped Switch 2 case is more than 35 percent off right now
How-To

Belkin’s battery-equipped Switch 2 case is more than 35 percent off right now

The Verge • 6h ago

Why this Marshall is the first soundbar I've tested that truly challenges my Sonos Arc Ultra
How-To

Why this Marshall is the first soundbar I've tested that truly challenges my Sonos Arc Ultra

ZDNet • 7h ago

Discover More Articles