Documentation ¶
Overview ¶
SPDX-License-Identifier: BSD-3-Clause Copyright (c) 2022, Unikraft GmbH and The KraftKit Authors. Licensed under the BSD-3-Clause License (the "License"). You may not use this file except in compliance with the License.
Index ¶
Constants ¶
View Source
const (
// DefaultMTU is the default MTU for new bridge interfaces.
DefaultMTU = 1500
)
Variables ¶
This section is empty.
Functions ¶
func AllocateIP ¶
func AllocateIP(ctx context.Context, ipnet *net.IPNet, iface *net.Interface, bridge *netlink.Bridge) (net.IP, error)
For a given IP network, bridge (and its interface), allocate a free IP address.
func NewNetworkServiceV1alpha1 ¶
func NewNetworkServiceV1alpha1(ctx context.Context, opts ...any) (networkv1alpha1.NetworkService, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.