On Windows it seems sending to port 0 does nothing and does not error. Presently sendmsg errors with EINVAL. This works around it, by checking if it's port 0 then skipping the data.
-- v3: ntdll: Do not send data to port 0. tests: Added to check if sending port 0 succeeds