Skip to content
  • Thomas Haller's avatar
    platform: properly handle IPv4 peer-addresses · 6c8aa669
    Thomas Haller authored
    The peer-address (IFA_ADDRESS) can also be all-zero (0.0.0.0).
    That is distinct from an usual address without explicit peer-address,
    which implicitly has the same peer and local address.
    
    Previously, we treated an all-zero peer_address as having peer and
    local address equal. This is especially grave, because the peer is part
    of the primary key for an IPv4 address. So we not only get a property of
    the address wrong, but we wrongly consider two different addresses as
    one and the same.
    
    To properly handle these addresses, we always must explicitly set the peer.
    6c8aa669