Skip to content

Commit 9203e0a

Browse files
keeskuba-moo
authored andcommitted
wireguard: peer: Replace sockaddr with sockaddr_inet
As part of the removal of the variably-sized sockaddr for kernel internals, replace struct sockaddr with sockaddr_inet in the endpoint 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-2-kees@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 463deed commit 9203e0a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/net/wireguard/peer.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ struct wg_device;
2020

2121
struct endpoint {
2222
union {
23-
struct sockaddr addr;
23+
struct sockaddr_inet addr; /* Large enough for both address families */
2424
struct sockaddr_in addr4;
2525
struct sockaddr_in6 addr6;
2626
};

0 commit comments

Comments
 (0)