Update gvisor to 20260727.0

This commit is contained in:
世界 2026-08-05 08:10:16 +08:00
parent 2d9b8aed5f
commit da24acaf4d
No known key found for this signature in database
GPG key ID: CD109927C34A63C4
5 changed files with 71 additions and 58 deletions

View file

@ -199,10 +199,6 @@ type Options struct {
// include CapabilitySaveRestore
SaveRestore bool
// DisconnectOk if true, indicates that this NIC capability set should
// include CapabilityDisconnectOk.
DisconnectOk bool
// PacketDispatchMode specifies the type of inbound dispatcher to be
// used for this endpoint.
PacketDispatchMode PacketDispatchMode
@ -256,10 +252,6 @@ func New(opts *Options) (stack.LinkEndpoint, error) {
caps |= stack.CapabilitySaveRestore
}
if opts.DisconnectOk {
caps |= stack.CapabilityDisconnectOk
}
if len(opts.FDs) == 0 {
return nil, fmt.Errorf("opts.FD is empty, at least one FD must be specified")
}