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::{MptcpPathManagerAddressGetRequest, MptcpPathManagerHandle};

pub struct MptcpPathManagerAddressHandle(MptcpPathManagerHandle);

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

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