UNPKG

404 BPlain TextView Raw
1import PrefixMap from '../routing/prefix-map'
2import { Route } from '../types/routing'
3import { uuid } from '../lib/utils'
4
5export interface RouteUpdate {
6 epoch: number,
7 prefix: string
8 route?: Route
9}
10
11export default class ForwardingRoutingTable extends PrefixMap<RouteUpdate> {
12 public routingTableId: string = uuid()
13 public log: (RouteUpdate | null)[] = []
14 public currentEpoch: number = 0
15}