Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

137
Vistas
Will Linux still receive AF_PACKET if it's not bound to an interface?

I'm trying to receive a particular type of packet irrespective of the interface it arrives on.

fd, err := syscall.Socket(syscall.AF_PACKET, syscall.SOCK_RAW, int(htons(0x88cc)))
for {
  len, sa, err := syscall.Recvfrom(fd, buf, 0)
  <process packet>
}

Whilst this works, it only works when something else binds to an interface it seems. I.e if the application is running and I start a tcpdump filtered to the desired data only then will my application receive the desired traffic.

Is this due to interfaces filtering on undirected traffic? How can AF_PACKET listen for a particular ether type on all interfaces on a System?

over 4 years ago · Santiago Trujillo
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda