netipsec: Set the outer IPv6 flow label from the SA
Tunnel mode encapsulation leaves the flow label of the outer IPv6 header
zero. ESP and AH have no transport ports (UDP-encapsulated ESP has them, but
the same pair for every SA), so devices that hash IPv6 headers to spread
traffic, link aggregates and ECMP routers alike, see no difference between
the security associations of two gateways and put all of their tunnels on
one path. lagg(4)'s own header hash does the same: for IPv6 its layer 4
input is the flow label.
Set the label to the low 20 bits of the SA's flow ID, the hash of its SPI
that the previous change introduced. Each SA then carries one label for its
lifetime; SPIs are unique within the SADB, so distinct SAs carry distinct
labels unless the 20-bit hashes collide. A hasher that includes the flow
label then spreads SAs over its paths while keeping the packets of each SA
on one, which avoids reordering their sequence numbers across paths. A rekey
starts a new SA and a new label. The label is set whether or not
net.inet.ipsec.sa_flowid is enabled: that sysctl governs the local transmit
queue selection, this label what the network sees. In a bundle whose tunnel
[29 lines not shown]
editors/openoffice-devel: address sanitizer
Add ASAN option to build with address sanitizer, for real this time.
Commit 606fcd8f5c267140316de3355fafc3601bc1ec3a missed Makefile.
Mark the ASAN option broken because the makedepend build tool has an
ASAN failure early in the build.
No PORTREVISON bump because the package is unchanged.
Fixes: 606fcd8f5c26