1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//! MPTCP (Multipath TCP) endpoint configuration via Generic Netlink.
//!
//! This module provides support for managing MPTCP endpoints, which allow
//! TCP connections to use multiple paths for bandwidth aggregation and failover.
//!
//! # Example
//!
//! ```ignore
//! use nlink::netlink::{Connection, Mptcp};
//! use nlink::netlink::genl::mptcp::{MptcpEndpointBuilder, MptcpLimits};
//!
//! // Create MPTCP connection (async for GENL family resolution)
//! let conn = Connection::<Mptcp>::new_async().await?;
//!
//! // Add endpoint for second interface
//! conn.add_endpoint(
//! MptcpEndpointBuilder::new("192.168.2.1".parse()?)
//! .id(1)
//! .dev("eth1")
//! .subflow()
//! .signal()
//! ).await?;
//!
//! // Set limits
//! conn.set_limits(
//! MptcpLimits::new()
//! .subflows(4)
//! .add_addr_accepted(4)
//! ).await?;
//!
//! // List endpoints
//! for ep in conn.get_endpoints().await? {
//! println!("Endpoint {}: {}", ep.id, ep.address);
//! }
//! ```
pub use ;
/// MPTCP Path Manager Generic Netlink family name.
pub const MPTCP_PM_GENL_NAME: &str = "mptcp_pm";
/// MPTCP Path Manager Generic Netlink version.
pub const MPTCP_PM_GENL_VERSION: u8 = 1;