-
Notifications
You must be signed in to change notification settings - Fork 14
/
ip6gre-ip6gretap.interfaces.ts
81 lines (81 loc) · 2.59 KB
/
ip6gre-ip6gretap.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
/**
* Add link IP6gre & greIp6tap type arguments.
* @category Interfaces
*/
export interface AddLinkIp6GreIp6gretapTypeArgs {
/** Specifies the remote address of the tunnel. */
remote: string;
/**
* Specifies the fixed local address for tunneled packets.
* It must be an address on another interface on this host.
*/
local: string;
/** @see {@link AddLinkGreGretapTypeArgs.seq} */
seq?: boolean;
/** @see {@link seq} */
iseq?: boolean;
/** @see {@link seq} */
noiseq?: boolean;
/** @see {@link seq} */
oseq?: boolean;
/** @see {@link seq} */
nooseq?: boolean;
/** @see {@link AddLinkGreGretapTypeArgs.key} */
key?: number | string;
/** @see {@link key} */
nokey?: true;
/** @see {@link key} */
ikey?: number | string;
/** @see {@link key} */
noikey?: true;
/** @see {@link key} */
okey?: number | string;
/** @see {@link key} */
nookey?: true;
/** @see {@link AddLinkGreGretapTypeArgs.csum} */
csum?: boolean;
/** @see {@link csum} */
icsum?: boolean;
/** @see {@link csum} */
noicsum?: boolean;
/** @see {@link csum} */
ocsum?: boolean;
/** @see {@link csum} */
noocsum?: boolean;
/** Specifies Hop Limit value to use in outgoing packets. */
hoplimit?: number;
/** Specifies a fixed encapsulation limit. Default is 4. */
encaplimit?: number;
/**
* TODO: Add a more suitable validator?
*
* Specifies the traffic class field on tunneled packets, which can be specified as
* either a two-digit hex value (e.g. `c0`) or a predefined string (e.g. `internet`).
*
* The value `inherit` causes the field to be copied from the original IP header.
*
* The values `inherit/STRING` or `inherit/00..ff` will set the field to `STRING` or
* `00..ff` when tunneling non-IP packets.
*
* The default value is `00`.
*/
tclass?: string;
/** Specifies a fixed flowlabel. */
flowlabel?: number;
// TODO: No docs in man.
'dscp inherit'?: true;
/** Specifies whether to allow remote endpoint to have an address configured on local host. */
'allow-localremote'?: boolean;
/** @see {@link['allow-localremote']} */
'noallow-localremote'?: boolean;
/** Specifies the physical device to use for tunnel endpoint communication. */
dev?: string;
/**
* Make this tunnel externally controlled (or not, which is the default).
* In the kernel, this is referred to as collect metadata mode.
*
* This flag is mutually exclusive with the {@link remote}, {@link local}, {@link seq}, {@link key},
* {@link csum}, {@link hoplimit}, {@link encaplimit}, {@link flowlabel} and {@link tclass} options.
*/
external?: true;
}