You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: internal/shim/task/networking.go
+17-1Lines changed: 17 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,11 @@ import (
31
31
"github.com/containerd/nerdbox/internal/vm"
32
32
)
33
33
34
+
const (
35
+
NET_FLAG_VFKIT=1<<iota// See https://github.com/containers/libkrun/blob/357ec63fee444b973e4fc76d2121fd41631f121e/include/libkrun.h#L271C9-L271C23
36
+
NET_FLAG_INCLUDE_VNET_HEADER
37
+
)
38
+
34
39
typenetworksProviderstruct {
35
40
nws []network
36
41
}
@@ -44,6 +49,7 @@ type network struct {
44
49
addr6 netip.Prefix// addr6 is the IPv6 address + subnet mask of the network interface
45
50
featuresuint32// features is a bitmask of virtio-net features enabled on this network endpoint
46
51
vfkitbool// vfkit is a boolean flag indicating whether libkrun must send the VFKIT magic sequence after connecting to the socket.
52
+
vnetHdrbool// vnetHdr is a boolean flag indicating whether libkrun must include virtio-net headers along with Ethernet frames.
47
53
}
48
54
49
55
const (
@@ -58,6 +64,7 @@ const (
58
64
addrField="addr"
59
65
featuresField="features"// features is a bitwise-OR separated list of virtio-net features. See https://docs.oasis-open.org/virtio/virtio/v1.3/csd01/virtio-v1.3-csd01.html#x1-2370003
60
66
vfkitField="vfkit"// vfkit is a boolean flag indicating whether libkrun must send the VFKIT magic sequence after connecting to the socket.
0 commit comments