|
mptcpd
Multipath TCP Daemon
|
mptcpd network device monitoring. More...


Go to the source code of this file.
Classes | |
| struct | mptcpd_interface |
| Network interface-specific information. More... | |
| struct | mptcpd_nm_ops |
| Network monitor event tracking operations. More... | |
Typedefs | |
| typedef void(* | mptcpd_nm_callback) (struct mptcpd_interface const *interface, void *callback_data) |
| Network monitor iteration function type. | |
Functions | |
| MPTCPD_API void | mptcpd_nm_foreach_interface (struct mptcpd_nm const *nm, mptcpd_nm_callback callback, void *data) |
| Iterate over all monitored network interfaces. | |
| MPTCPD_API bool | mptcpd_nm_register_ops (struct mptcpd_nm *nm, struct mptcpd_nm_ops const *ops, void *user_data) |
| Subscribe to mptcpd network monitor events. | |
| MPTCPD_API bool | mptcpd_nm_monitor_loopback (struct mptcpd_nm *nm, bool enable) |
| Enable monitoring of the loopback network interface. | |
mptcpd network device monitoring.
Copyright (c) 2017-2022, Intel Corporation
| typedef void(* mptcpd_nm_callback) (struct mptcpd_interface const *interface, void *callback_data) |
Network monitor iteration function type.
The mptcpd network monitor will call a function of this type when iterating over the network interfaces via mptcpd_nm_foreach_interface().
| [in] | interface | Network interface information. |
| [in,out] | callback_data | Data provided by the caller of mptcpd_nm_foreach_interface(). |
| MPTCPD_API void mptcpd_nm_foreach_interface | ( | struct mptcpd_nm const * | nm, |
| mptcpd_nm_callback | callback, | ||
| void * | data | ||
| ) |
Iterate over all monitored network interfaces.
| [in] | nm | Pointer to the mptcpd network monitor object. |
| [in] | callback | Function to be called during each network interface iteration. |
| [in] | data | Data to pass to the callback function during each iteration. |
| MPTCPD_API bool mptcpd_nm_monitor_loopback | ( | struct mptcpd_nm * | nm, |
| bool | enable | ||
| ) |
Enable monitoring of the loopback network interface.
Mptcpd normally only monitors non-loopback network interfaces. Call this function to enable monitoring of loopback network interfaces.
| [in,out] | nm | Pointer to the mptcpd network monitor object. |
| [in] | enable | Enable or disable monitoring of loopback network interfaces. |
| true | Successfully enable or disabled. |
| false | Invalid nm argument. |
| MPTCPD_API bool mptcpd_nm_register_ops | ( | struct mptcpd_nm * | nm, |
| struct mptcpd_nm_ops const * | ops, | ||
| void * | user_data | ||
| ) |
Subscribe to mptcpd network monitor events.
Register a set of operations that will be called on a corresponding mptcpd network monitoring event, e.g. network interface or address addition, update, or removal.
| [in,out] | nm | Pointer to the mptcpd network monitor object. |
| [in] | ops | Set of network monitoring event handling functions. |
| [in] | user_data | Data to be passed to the network event tracking operations. |
| true | Registration succeeded. |
| false | Registration failed. |