Re: [PATCH] net: Remove the source address setting in connect() for UDP

From: David Miller
Date: Fri Sep 06 2019 - 03:14:00 EST


From: Enke Chen <enkechen@xxxxxxxxx>
Date: Thu, 5 Sep 2019 19:54:37 -0700

> The connect() system call for a UDP socket is for setting the destination
> address and port. But the current code mistakenly sets the source address
> for the socket as well. Remove the source address setting in connect() for
> UDP in this patch.

Do you have any idea how many decades of precedence this behavior has and
therefore how much you potentially will break userspace?

This boat has sailed a long time ago I'm afraid.