Make MetaAddr.addr a private field #2357
Labels
A-network
Area: Network protocol updates or fixes
A-rust
Area: Updates to Rust code
C-security
Category: Security issues
I-remote-node-overload
Zebra can overload other nodes on the network
Motivation
In PR #2276, we make sure that all
SocketAddr
s are canonical in theMetaAddr
andMetaAddrChange
constructors.But other code can still make the
addr
field non-canonical, because it'spub(crate)
.Solution
MetaAddr::addr()
methodMetaAddr.addr
field private, replacing accesses with the methodAlternatives
If we don't make this change, we risk future bugs where Zebra connects multiple times to the same canonical peer address, because it is storing different variants of that address in the address book.
The text was updated successfully, but these errors were encountered: