In local mode, the default IPv4 gateway is 169.254.2.2. If the user
assigns an address outside 169.254.0.0/16 with -a, the gateway isn't
covered by any prefix on the namespace interface, and if pasta is run
with --config-net, setting the default route fails.
This can be reproduced from a namespace without routes, e.g. one
created by pasta without --config-net:
$ pasta
# pasta --config-net -a 10.0.0.1/24 -- ip route
...
Couldn't set IPv4 route(s) in guest: Network is unreachable
We reply to ARP requests for any address other than the guest's own,
so the gateway is always reachable on the link. Therefore, flag the
default route with RTNH_F_ONLINK, so that the kernel doesn't require
the gateway to be within an assigned prefix.
Fixes: 14b84a7f077e ("treewide: Introduce 'local mode' for disconnected setups")
Signed-off-by: Jon Maloy