mirror of
https://github.com/yggdrasil-network/water.git
synced 2025-05-19 16:35:10 +03:00
styling changes
This commit is contained in:
parent
bf1a5d0277
commit
8c63d7a3c7
2 changed files with 26 additions and 29 deletions
|
@ -2,15 +2,17 @@
|
|||
|
||||
package water
|
||||
|
||||
// DevicePermissions determines the owner and group owner for the newly created
|
||||
// interface.
|
||||
type DevicePermissions struct {
|
||||
// ID of the user which will be granted ownership of the device.
|
||||
// If set to a negative value, the owner value will not be changed.
|
||||
// By default, Linux sets the owner to -1, which allows any user.
|
||||
// Owner is the ID of the user which will be granted ownership of the
|
||||
// device. If set to a negative value, the owner value will not be
|
||||
// changed. By default, Linux sets the owner to -1, which allows any user.
|
||||
Owner uint
|
||||
|
||||
// ID of the group which will be granted access to the device.
|
||||
// If set to a negative value, the group value will not be changed.
|
||||
// By default, Linux sets the group to -1, which allows any group.
|
||||
// Group is the ID of the group which will be granted access to the device.
|
||||
// If set to a negative value, the group value will not be changed. By
|
||||
// default, Linux sets the group to -1, which allows any group.
|
||||
Group uint
|
||||
}
|
||||
|
||||
|
@ -24,17 +26,19 @@ type PlatformSpecificParams struct {
|
|||
// used.
|
||||
Name string
|
||||
|
||||
// Enable or disable persistence mode for the interface device.
|
||||
// Persist specifies whether persistence mode for the interface device
|
||||
// should be enabled or disabled.
|
||||
Persist bool
|
||||
|
||||
// Owner and Group permissions for the device.
|
||||
// A zero-value of this field, i.e. nil, indicates that no changes to owner
|
||||
// or group will be made.
|
||||
// Permissions, if non-nil, specifies the owner and group owner for the
|
||||
// interface. A zero-value of this field, i.e. nil, indicates that no
|
||||
// changes to owner or group will be made.
|
||||
Permissions *DevicePermissions
|
||||
|
||||
// Support multiqueue tun/tap interface.
|
||||
// From version 3.8, Linux supports multiqueue tuntap which can uses multiple
|
||||
// file descriptors (queues) to parallelize packets sending or receiving.
|
||||
// MultiQueue specifies whether the multiqueue flag should be set on the
|
||||
// interface. From version 3.8, Linux supports multiqueue tuntap which can
|
||||
// uses multiple file descriptors (queues) to parallelize packets sending
|
||||
// or receiving.
|
||||
MultiQueue bool
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue