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

121
Views
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
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!