HomeFreeBSD

nd6: use CARP link level address in SLLAO for NS sent out

Description

nd6: use CARP link level address in SLLAO for NS sent out

When sending an NS, check if we are using a IPv6 CARP address
and if we do, then put proper CARP link level address into
ND_OPT_SOURCE_LINKADDR option and also put PACKET_TAG_CARP tag
on the packet. The latter will enforce CARP link level address
at the data link layer too, which might be necessary for broken
implementations.
The code really follows what NA sending code has been doing since
introduction of carp(4). While here, bring to style(9) the whole
block of code.

PR: 193280
Differential revision: https://reviews.freebsd.org/D33858

(cherry picked from commit bc6abdd97e951b54294d331698317a607246255d)

Details

Provenance
thomas_gibfest.dkAuthored on Jan 25 2022, 5:02 AM
glebiusCommitted on Feb 7 2022, 6:55 PM
Differential Revision
D33858: nd6: properly fill CARP link level address for NS sent out
Parents
rGa0b526b4d56a: arm64, riscv: handle RB_KDB
Branches
Unknown
Tags
Unknown