Skip to content

Packet sockets require binding #89047

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
go2sh opened this issue Apr 24, 2025 · 1 comment
Open

Packet sockets require binding #89047

go2sh opened this issue Apr 24, 2025 · 1 comment
Assignees
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug

Comments

@go2sh
Copy link
Contributor

go2sh commented Apr 24, 2025

Describe the bug

Using the packet sockets require binding of the socket to an interface to receive packets. See

local = (struct sockaddr_ll *)&conn->local_addr;

To Reproduce

Create a packet socket and try to receive a packet without binding.

Expected behavior

Packets from all Interfaces should be received.

Impact

Medium

Logs and console output

Environment (please complete the following information):

  • OS: Linux
  • Toolchain clang
  • Commit SHA main

Additional context

@go2sh go2sh added the bug The issue is a bug, or the PR is fixing a bug label Apr 24, 2025
@go2sh
Copy link
Contributor Author

go2sh commented Apr 24, 2025

Cc @rlubos

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: Networking bug The issue is a bug, or the PR is fixing a bug
Projects
None yet
Development

No branches or pull requests

4 participants