runtime: Pass the route IP family to the agent

When updating the guest routing table, we should forward the IP family
information up to the guest.

Signed-off-by: Samuel Ortiz <s.ortiz@apple.com>
This commit is contained in:
Samuel Ortiz 2021-09-29 10:45:04 +02:00
parent 99450bd1f7
commit 71ce6cfe9e

View File

@ -1048,6 +1048,7 @@ func generateVCNetworkStructures(ctx context.Context, networkNS NetworkNamespace
r.Device = endpoint.Name()
r.Scope = uint32(route.Scope)
r.Family = utils.ConvertNetlinkFamily((int32)(route.Family))
routes = append(routes, &r)
}