Host routing
I my previous post, Basic eBPF forwarding, I asked the question:
“What happens if the destination IP isn’t in the lxc_map?”
The answer in that post was basically: the packet gets dropped.
To summarize: The lxc_map is a node-wide map that maintains a mapping from a destination-ip to an EndpointInfo. The EndpointInfo contains an interface index. So, when the desination-ip is known, the eBPF program simply redirects it to that interface.