https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285316
Bug ID: 285316
Summary: The target address passed is not ignored when the
socket is in a connected state
Product: Base System
Version: 14.1-RELEASE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
As per send(2) - https://man.freebsd.org/cgi/man.cgi?query=send, it says:
'''
If the socket is in a connected state, the target address passed to
sendto(), sendmsg() or sendmmsg() is ignored.
'''
However, the the target address is not ignored.
It seems that udp_send() has the validation. The attached patch can ignore the
target address. But is it a wrong man page or wrong validation?
Just FYI, Linux (6.12.10-100.fc40.x86_64) ignores the target address with a
socket in a connected state so an application with same code did not work.
--
You are receiving this mail because:
You are the assignee for the bug.