a73x

internal/agent/netenv/snoop_linux.go

Ref:   Size: 449 B   History

//go:build linux

package netenv

import "github.com/a73x/eitri/internal/agent/netsnoop"

// defaultListen is production address discovery for a guest's second NIC: a
// packet socket on that NIC's own tap, reading the DHCP ACK the site's server
// sends it. A variable behind a build tag rather than a direct call because
// the snoop needs AF_PACKET and this package is compiled on platforms that
// have none.
var defaultListen = netsnoop.Listen