Function create_tfport_link

Source
pub fn create_tfport_link(
    name: &str,
    over: &str,
    port: u16,
    mac: Option<String>,
    flags: LinkFlags,
) -> Result<LinkInfo, Error>
Expand description

Create a tfport link.

Each tfport link is layered on top of a mac device and is associated with a 16-bit port number. When the tfport driver receives a packet with a “sidecar” header attached, it uses the port in that header to forward the packet to the link associated with that port. Packets that are transmitted through a tfport will have a sidecar header prepended by the tfport driver before forwarding them to the underlying mac device.