Skip to content

Commit 511d10b

Browse files
keeskuba-moo
authored andcommitted
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>
1 parent 9203e0a commit 511d10b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

include/net/sctp/structs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@
5151
* We should wean ourselves off this.
5252
*/
5353
union sctp_addr {
54+
struct sockaddr_inet sa; /* Large enough for both address families */
5455
struct sockaddr_in v4;
5556
struct sockaddr_in6 v6;
56-
struct sockaddr sa;
5757
};
5858

5959
/* Forward declarations for data structures. */

0 commit comments

Comments
 (0)