Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

126
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda