Skip to content

Doesn't seem to be able to both send and receive locally via local address #3411

@zephyrbot

Description

@zephyrbot

Reported by Paul Sokolovsky:

I'm doing following:

  1. Create a UDP socket and bind it to a known local address (192.0.2.1), attach recv callback.
  2. Create another UDP socket, and send data to first socket's address (192.0.2.1:PORT).
  3. All this happens on the same device (specifically qemu_x86, specifically with Zephyr.js).

What I get is: socket #1 receives nothing, and socket #2 doesn't even have sent callback called. Whereas expected behavior is: socket #1 receive the data.

Is it supposed to work in Zephyr now? If not, that's not what POSIX (or common sense) wants. I'm looking into this because it's an easy way to perform automated integration testing for networking stuff (we can use it in sanitycheck tests).

(Imported from Jira ZEP-1966)

Metadata

Metadata

Assignees

Labels

area: NetworkingbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions