Created attachment 258546 [details] 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.
*** This bug has been marked as a duplicate of bug 285316 ***