HomeFreeBSD

route: fix route get netlink translation.

Description

route: fix route get netlink translation.

route.c uses newroute() to handle the "route get" command. The logic
inside newroute() adds RTF_GATEWAY flag if "-interface" flag is not
specified. That results in the inconsistent RTM_GET message with
RTF_GATEWAY set but no RTAX_GATEWAY provided. Address this in the
translation code by checking if the gateway is actually provided.

Details

Provenance
melifaroAuthored on Apr 4 2023, 8:37 AM
Parents
rGe46be58cca6b: bhyve: add QEMU_FWCFG_INDEX_NB_CPUS item
Branches
Unknown
Tags
Unknown