mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-28 05:34:13 -05:00
sctp: Replace sockaddr with sockaddr_inet in sctp_addr union
As part of the removal of the variably-sized sockaddr for kernel internals, replace struct sockaddr with sockaddr_inet in the sctp_addr union. No binary changes; the union size remains unchanged due to sockaddr_inet matching the size of sockaddr_in6. Signed-off-by: Kees Cook <kees@kernel.org> Link: https://patch.msgid.link/20250722171836.1078436-3-kees@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
committed by
Jakub Kicinski
parent
9203e0a82c
commit
511d10b4c2
@@ -51,9 +51,9 @@
|
||||
* We should wean ourselves off this.
|
||||
*/
|
||||
union sctp_addr {
|
||||
struct sockaddr_inet sa; /* Large enough for both address families */
|
||||
struct sockaddr_in v4;
|
||||
struct sockaddr_in6 v6;
|
||||
struct sockaddr sa;
|
||||
};
|
||||
|
||||
/* Forward declarations for data structures. */
|
||||
|
||||
Reference in New Issue
Block a user