aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKees Cook <kees@kernel.org>2025-07-22 10:18:33 -0700
committerJakub Kicinski <kuba@kernel.org>2025-07-25 15:29:58 -0700
commit511d10b4c2f91fb6aa676006b2bdff4df5d6e270 (patch)
tree42822830930e01c3c7508896b4dbb7d3297715ec
parentwireguard: peer: Replace sockaddr with sockaddr_inet (diff)
downloadwireguard-linux-511d10b4c2f91fb6aa676006b2bdff4df5d6e270.tar.xz
wireguard-linux-511d10b4c2f91fb6aa676006b2bdff4df5d6e270.zip
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>
-rw-r--r--include/net/sctp/structs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/sctp/structs.h b/include/net/sctp/structs.h
index 1ad7ce71d0a7..8a540ad9b509 100644
--- a/include/net/sctp/structs.h
+++ b/include/net/sctp/structs.h
@@ -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. */