-
Notifications
You must be signed in to change notification settings - Fork 14
/
get.interfaces.ts
37 lines (37 loc) · 1.12 KB
/
get.interfaces.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
/**
* Route get options.
* @category Interfaces
*/
export interface RouteGetOptions {
/**
* Return full `fib` lookup matched route.
* Default is to return the resolved `dst` entry.
*/
fibmatch?: true;
/** The destination address. */
to?: string;
/** The source address. */
from?: string;
/** The device from which this packet is expected to arrive. */
iif?: string;
/** Force the output device on which this packet will be routed. */
oif?: string;
/** The firewall mark (fwmark). */
mark?: string;
/** Only select routes with the given TOS. */
tos?: number;
/** Force the `vrf` device on which this packet will be routed. */
vrf?: string;
/** IP protocol as seen by the route lookup. */
ipproto?: string | number;
/** Source port as seen by the route lookup. */
sport?: number;
/** Destination port as seen by the route lookup. */
dport?: number;
/**
* If no source address (option from) was given, relookup the route with the source set to the
* preferred address received from the first lookup.
* If policy routing is used, it may be a different route.
*/
connected?: true;
}