mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 10:37:33 -07:00
.
This commit is contained in:
parent
536bc59abb
commit
b44bd19c53
3 changed files with 8 additions and 10 deletions
|
@ -141,14 +141,18 @@ type Network struct {
|
|||
|
||||
// newNetwork creates a new network with default settings
|
||||
func newNetwork(node *Node, id NetworkID, t Tap) (*Network, error) {
|
||||
m := NewMACForNetworkMember(node.Identity().address, id)
|
||||
n := &Network{
|
||||
node: node,
|
||||
id: id,
|
||||
mac: NewMACForNetworkMember(node.Identity().address, id),
|
||||
mac: m,
|
||||
tap: t,
|
||||
config: NetworkConfig{
|
||||
ID: id,
|
||||
MAC: m,
|
||||
Status: NetworkStatusRequestConfiguration,
|
||||
Type: NetworkTypePrivate,
|
||||
MTU: int(defaultVirtualNetworkMTU),
|
||||
},
|
||||
settings: NetworkLocalSettings{
|
||||
AllowManagedIPs: true,
|
||||
|
|
|
@ -63,6 +63,8 @@ const (
|
|||
|
||||
afInet = C.AF_INET
|
||||
afInet6 = C.AF_INET6
|
||||
|
||||
defaultVirtualNetworkMTU = C.ZT_DEFAULT_MTU
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue