This Go package implements TCP/IP connectivity through VirtIO Networking to be
used with GOOS=tamago
as supported by the
TamaGo framework for bare metal Go on
AMD64/ARM/RISC-V processors.
The package supports TCP/IP networking through gVisor (go
branch)
tcpip
stack pure Go implementation.
The interface TCP/IP stack can be attached to the Go runtime by setting
net.SocketFunc
to the interface Socket
function:
dev := &vnet.Net{
Base: microvm.VIRTIO_NET_BASE,
}
iface, _ := vnet.Init(dev, "10.0.0.1", "255.255.255.0", "10.0.0.2")
net.SocketFunc = iface.Socket
See tamago-example for a full integration example.
Andrea Barisani
andrea.barisani@withsecure.com | andrea@inversepath.com
Andrej Rosano
andrej.rosano@withsecure.com | andrej@inversepath.com
The package API documentation can be found on pkg.go.dev.
For more information about TamaGo see its repository and project wiki.
tamago | https://github.com/usbarmory/virtio-net
Copyright (c) WithSecure Corporation
These source files are distributed under the BSD-style license found in the LICENSE file.