networking

package
v0.4.159 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 25, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package networking deals with enabling and managing networking inside firecracker virtual machines.

NuNet uses 172.20.0.0-172.20.255.255. Please note that 3rd octet is for particular application. If an application is using more than 1 VM, 4th octet will be used for assigning multiple VM in that network. For simplicity, following will be the mapping between tap devices on host and subnet range: tap0 -> 172.20.0.x tap1 -> 172.20.1.x tap2 -> 172.20.2.x tap3 -> 172.20.3.x And so on...

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureTapByName

func ConfigureTapByName(tap string) error

ConfigureTapByName takes in a tap device name, and configures subnet range and makes some changes to iptables tables and chains.

func NextTapDevice

func NextTapDevice() string

NextTapDevice queries the host machine for a tap devices name in a sequencial manner, if it does not exist, then it is returned to the caller. Example: tap0, tap1, tap2 etc. The first available is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL