virtionet

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 20, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	VIRTIO_NET_F_CSUM       uint32 = 1 << 0  // Device handles packets with partial checksum offload.
	VIRTIO_NET_F_GUEST_CSUM uint32 = 1 << 1  // Driver handles packets with partial checksum.
	VIRTIO_NET_F_GUEST_TSO4 uint32 = 1 << 7  // Driver can receive TSOv4.
	VIRTIO_NET_F_GUEST_TSO6 uint32 = 1 << 8  // Driver can receive TSOv6.
	VIRTIO_NET_F_GUEST_UFO  uint32 = 1 << 10 // Driver can receive UFO.
	VIRTIO_NET_F_HOST_TSO4  uint32 = 1 << 11 // Device can receive TSOv4.
	VIRTIO_NET_F_HOST_TSO6  uint32 = 1 << 12 // Device can receive TSOv6.
	VIRTIO_NET_F_HOST_UFO   uint32 = 1 << 14 // Device can receive UFO.
)

This list of features is taken from https://github.com/containers/libkrun/blob/357ec63fee444b973e4fc76d2121fd41631f121e/include/libkrun.h#L274

Variables

This section is empty.

Functions

This section is empty.

Types

type Features

type Features uint32

func FeaturesFromStrings

func FeaturesFromStrings(features ...string) (Features, error)

func (Features) Add

func (f Features) Add(features ...string) (Features, error)

func (Features) AsUint32

func (f Features) AsUint32() uint32

func (Features) Features

func (f Features) Features() []string

Jump to

Keyboard shortcuts

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