uNetworking / uNetworking/uSockets
Error initializing structure msg_hdr by UDP, field msg_name
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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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