mptcp-pm 0.2.0

Linux kernel MPTCP path manager netlink Library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// SPDX-License-Identifier: MIT

use crate::{MptcpPathManagerHandle, MptcpPathManagerLimitsGetRequest};

pub struct MptcpPathManagerLimitsHandle(MptcpPathManagerHandle);

impl MptcpPathManagerLimitsHandle {
    pub fn new(handle: MptcpPathManagerHandle) -> Self {
        MptcpPathManagerLimitsHandle(handle)
    }

    /// Retrieve the multipath-TCP  addresses
    /// (equivalent to `ip mptcp endpoint show`)
    pub fn get(&mut self) -> MptcpPathManagerLimitsGetRequest {
        MptcpPathManagerLimitsGetRequest::new(self.0.clone())
    }
}