mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-12-27 14:41:22 -05:00
Update all struct proto_ops connect() callback function prototypes from "struct sockaddr *" to "struct sockaddr_unsized *" to avoid lying to the compiler about object sizes. Calls into struct proto handlers gain casts that will be removed in the struct proto conversion patch. No binary changes expected. Signed-off-by: Kees Cook <kees@kernel.org> Link: https://patch.msgid.link/20251104002617.2752303-3-kees@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
23 lines
670 B
C
23 lines
670 B
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* VMware vSockets Driver
|
|
*
|
|
* Copyright (C) 2007-2013 VMware, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _VSOCK_ADDR_H_
|
|
#define _VSOCK_ADDR_H_
|
|
|
|
#include <uapi/linux/vm_sockets.h>
|
|
|
|
void vsock_addr_init(struct sockaddr_vm *addr, u32 cid, u32 port);
|
|
int vsock_addr_validate(const struct sockaddr_vm *addr);
|
|
bool vsock_addr_bound(const struct sockaddr_vm *addr);
|
|
void vsock_addr_unbind(struct sockaddr_vm *addr);
|
|
bool vsock_addr_equals_addr(const struct sockaddr_vm *addr,
|
|
const struct sockaddr_vm *other);
|
|
int vsock_addr_cast(const struct sockaddr_unsized *addr, size_t len,
|
|
struct sockaddr_vm **out_addr);
|
|
|
|
#endif
|