Class TapFace

Create a secondary face by tapping on a primary face.

Remarks

TapFace is useful for sending in-band management commands to a specific neighbor, after being added to a temporary secondary Forwarder. The TapFace shares the same transport as the primary face, but allows independent FIB and PIT settings. The primary Forwarder will see RX packets, but does not see TX packets.

Implements

Constructors

Properties

Accessors

Methods

Constructors

Properties

face: FwFace
rx: Pushable<FwPacket<L3Pkt>> = ...

RX packet stream received by the logical forwarder.

Accessors

  • get attributes(): {
        advertiseFrom?: boolean;
        describe: string;
        local?: boolean;
        routeCapture?: boolean;
    }
  • Returns {
        advertiseFrom?: boolean;
        describe: string;
        local?: boolean;
        routeCapture?: boolean;
    }

    • Optional advertiseFrom?: boolean

      Whether to allow prefix announcements.

      Default Value

      true
      

      Remarks

      If false, FwFace.addAnnouncement has no effect.

    • describe: string
    • Optional local?: boolean

      Whether face is local.

      Default Value

      false
      
    • Optional routeCapture?: boolean

      Whether routes registered on this face would cause FIB to stop matching onto shorter prefixes.

Methods

  • Parameters

    • iterable: AsyncIterable<FwPacket<L3Pkt>>

    Returns Promise<void>