Skip to content
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

sendto is incorrect #4

Open
mischievous opened this issue Jan 15, 2024 · 0 comments
Open

sendto is incorrect #4

mischievous opened this issue Jan 15, 2024 · 0 comments

Comments

@mischievous
Copy link

ssize_t
sendmsg(int socket, const struct msghdr *message, int flags);

DESCRIPTION
sendto() is used to transmit a message to another socket and may be used at any time.

 The address of the target is given by dest_addr with dest_len specifying its size.  The length of the message is given by length.  If the message is too long to pass atomically through the underlying protocol, the error EMSGSIZE is returned, and the message is not transmitted.

Except excerpt from picowl_net.c::sendto where yo can see it's using the ip address in the NET_SOCKET
return (udp_tx(usp->rem_mac, usp->rem_ip, usp->rem_port, usp->loc_port, data, size));

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant