mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-01-29 21:39:23 +00:00
Merge pull request #11232 from lifupan/mtu
runtime: add the mtu support for updating routes
This commit is contained in:
@@ -310,6 +310,8 @@ func generateVCNetworkStructures(ctx context.Context, endpoints []Endpoint) ([]*
|
||||
r.Scope = uint32(route.Scope)
|
||||
r.Family = utils.ConvertAddressFamily((int32)(route.Family))
|
||||
r.Flags = uint32(route.Flags)
|
||||
r.Mtu = uint32(route.MTU)
|
||||
|
||||
routes = append(routes, &r)
|
||||
}
|
||||
|
||||
|
||||
@@ -308,6 +308,7 @@ type Route struct {
|
||||
Scope uint32 `protobuf:"varint,5,opt,name=scope,proto3" json:"scope,omitempty"`
|
||||
Family IPFamily `protobuf:"varint,6,opt,name=family,proto3,enum=types.IPFamily" json:"family,omitempty"`
|
||||
Flags uint32 `protobuf:"varint,7,opt,name=flags,proto3" json:"flags,omitempty"`
|
||||
Mtu uint32 `protobuf:"varint,8,opt,name=mtu,proto3" json:"mtu,omitempty"`
|
||||
}
|
||||
|
||||
func (x *Route) Reset() {
|
||||
|
||||
Reference in New Issue
Block a user