Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

129
Views
¿Linux seguirá recibiendo AF_PACKET si no está vinculado a una interfaz?

Estoy tratando de recibir un tipo particular de paquete independientemente de la interfaz a la que llegue.

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

Si bien esto funciona, solo funciona cuando parece que algo más se une a una interfaz. Es decir, si la aplicación se está ejecutando e inicio un tcpdump filtrado a los datos deseados, solo entonces mi aplicación recibirá el tráfico deseado.

¿Esto se debe a que las interfaces filtran el tráfico no dirigido? ¿Cómo puede AF_PACKET escuchar un tipo de éter particular en todas las interfaces de un sistema?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!