summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authormpi <mpi@openbsd.org>2015-05-26 11:55:34 +0000
committermpi <mpi@openbsd.org>2015-05-26 11:55:34 +0000
commitd66edcb94fdec88d5424078d0a73e13ff9705877 (patch)
tree4535d05c4dd6e326698108e730ad0dbb32e0bf63 /lib/libc
parentNow that the Ethernet header is always passed as part of the mbuf, kill (diff)
downloadwireguard-openbsd-d66edcb94fdec88d5424078d0a73e13ff9705877.tar.xz
wireguard-openbsd-d66edcb94fdec88d5424078d0a73e13ff9705877.zip
Do not create ARP entries for RTF_BROADCAST routes.
This has been done because historically routes to broadcast addresses were cloned like any ARP entry. But for obvious reasons, no matching Ethernet address could ever be resolved. That's why we played tricks with the expire timer. Now that a RTF_BROADCAST route is created per configured IPv4 address, we need to differenciate duplicated one. And by not creating an ARP entry we are allowed to write the IP address in the rt_gateway field, which prevents MPATH conflicts. This change is part of a fix to unbreak aliases since the kernel support multiple connected routes for a subnet. Found the hardway by djm@, ok claudio@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions