sockaddr.h
Go to the documentation of this file.
// SPDX-License-Identifier: BSD-3-Clause
#ifndef MPTCPD_PRIVATE_SOCKADDR_H
#define MPTCPD_PRIVATE_SOCKADDR_H
#include <stdbool.h>
#include <mptcpd/export.h>
#ifdef __cplusplus
extern "C" {
#endif
struct in_addr;
struct in6_addr;
struct sockaddr_storage;
MPTCPD_API bool
mptcpd_sockaddr_storage_init(struct in_addr const *addr4,
struct in6_addr const *addr6,
unsigned short port,
struct sockaddr_storage *addr);
#ifdef __cplusplus
}
#endif
#endif /* MPTCPD_PRIVATE_SOCKADDR_H */
/*
Local Variables:
c-file-style: "linux"
End:
*/
export.h
mptcpd shared library symbol export/import macros.
mptcpd_sockaddr_storage_init
MPTCPD_API bool mptcpd_sockaddr_storage_init(struct in_addr const *addr4, struct in6_addr const *addr6, unsigned short port, struct sockaddr_storage *addr)
Initialize sockaddr_storage instance.
Definition: sockaddr.c:17