uNetworking / uNetworking/uSockets

Error initializing structure msg_hdr by UDP, field msg_name

Open
#207 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
1.5k
Forks
307
PR merge metrics
No merged PRs in 30d

Description

https://github.com/uNetworking/uSockets/blob/ac4e90e4d2ad674db903accc5f3abc408a6bc5d8/src/bsd.c#L254

Error initializing structure msg_hdr, here you need to fix &b->addr[n].
Otherwise, when reading multiple packets from the buffer, they will always have the same sender address, even if these packets were sent from two different addresses.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/bsd.c line 254 and inspect how msg_hdr is initialized while reading UDP packets. Verify the behavior with multiple packets from different sender addresses; done means each packet retains its own sender address rather than reusing one address.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
networking
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.