Date: Tue, 11 Mar 2025 00:30:05 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 285315] The target address passed is not ignored when the socket is in a connected state Message-ID: <bug-285315-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=285315 Bug ID: 285315 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: bugs@FreeBSD.org Reporter: nakayamakenjiro@gmail.com Created attachment 258546 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=258546&action=edit A patch to ignore the validation for target address when connected 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.help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-285315-227>
