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: b...@freebsd.org
          Reporter: nakayamakenj...@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.

Reply via email to