mptcpd
Multipath TCP Daemon
|
mptcpd generic netlink command utilities. More...
Macros | |
#define | _POSIX_C_SOURCE 200112L |
For XSI-compliant strerror_r(). | |
Functions | |
uint16_t | mptcpd_get_port_number (struct sockaddr const *addr) |
Get TCP port number (host byte order). | |
bool | mptcpd_check_genl_error (struct l_genl_msg *msg, char const *fname) |
Check for genl operation failure. | |
void | mptcpd_family_send_callback (struct l_genl_msg *msg, void *user_data) |
Generic error reporting callback. | |
mptcpd generic netlink command utilities.
Copyright (c) 2017-2020, 2022, Intel Corporation
bool mptcpd_check_genl_error | ( | struct l_genl_msg * | msg, |
char const * | fname | ||
) |
Check for genl operation failure.
Check for generic netlink operation failure, and log associated error message.
[in] | msg | Generic netlink message information. |
[in] | fname | Name function from which the error check was initiated. |
true
if no error was found, and false
otherwise. void mptcpd_family_send_callback | ( | struct l_genl_msg * | msg, |
void * | user_data | ||
) |
Generic error reporting callback.
[in] | msg | Generic netlink message information. |
[in] | user_data | Function name. |
uint16_t mptcpd_get_port_number | ( | struct sockaddr const * | addr | ) |
Get TCP port number (host byte order).
[in] | addr | Network address information. |
Get TCP port suitably typed for use in MPTCP generic netlink API calls, or zero if no address was provided.