variable BFD_STATE

Session state values used by the flags.state field (RFC 5880 section 4.1).

Examples

Example 1

import { assertEquals } from "@std/assert";
import { BFD_STATE } from "@binstruct/bfd";

assertEquals(BFD_STATE.DOWN, 1);
assertEquals(BFD_STATE.UP, 3);

Properties

ADMIN_DOWN: number

Session is down and the remote system is not signaling.

DOWN: number

Session is down.

INIT: number

Session is attempting to come up.

UP: number

Session is up and bidirectional connectivity is verified.

Usage

import { BFD_STATE } from ".";