-
Notifications
You must be signed in to change notification settings - Fork 14
/
macvlan-macvtap.interfaces.ts
61 lines (59 loc) · 2.21 KB
/
macvlan-macvtap.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
import { MacvlanMacvtapModes } from '../../link.constants';
/**
* Add link macvlan & macvtap type arguments.
* @category Interfaces
*/
export interface AddLinkMacvlanMacvtapTypeArgs {
/**
* Specifies the mode.
*
* @see {@link MacvlanMacvtapModes}
*/
mode: MacvlanMacvtapModes;
/**
* Set the length of the RX queue used to process broadcast and multicast packets.
*
* LENGTH must be a positive integer in the range [0-4294967295].
* Setting a length of 0 will effectively drop all broadcast/multicast traffic.
* If not specified the macvlan driver default (1000) is used.
*
* Note that all macvlans that share the same underlying device are using the same queue.
* The parameter here is a request, the actual queue length used will be the maximum length
* that any macvlan interface has requested.
*
* When listing device parameters both the bcqueuelen parameter as well as the actual used bcqueuelen
* are listed to better help the user understand the setting.
*/
bcqueuelen?: number;
}
/**
* Set link macvlan & macvtap type arguments.
* @category Interfaces
*/
export interface SetLinkMacvlanMacvtapTypeArgs {
/** Modify list of allowed {@link macaddr} for link in source mode. */
macaddr?: true;
/** Add MACADDR to allowed list. */
add?: string;
/** Replace allowed list. */
set?: string;
/** Remove MACADDR from allowed list. */
del?: string;
/** Flush whole allowed list. */
flush?: true;
/**
* Set the length of the RX queue used to process broadcast and multicast packets.
* LENGTH must be a positive integer in the range [0-4294967295].
*
* Setting a length of 0 will effectively drop all broadcast/multicast traffic.
* If not specified the macvlan driver default (1000) is used.
*
* Note that all macvlans that share the same un‐derlying device are using the same queue.
* The parameter here is a request, the actual queue length used will be the maximum length
* that any macvlan interface has requested.
*
* When listing device parameters both the {@link bcqueuelen} parameter as well as the actual used
* {@link bcqueuelen} are listed to better help the user understand the setting.
*/
bcqueuelen?: number;
}