}
}
- /* NLRI is processed only when the peer is configured specific
- Address Family and Subsequent Address Family. */
- if (peer->afc[AFI_IP][SAFI_UNICAST])
+ /* NLRI is processed only when the the corresponding address-family
+ * has been negotiated with the peer.
+ */
+ if (peer->afc_nego[AFI_IP][SAFI_UNICAST])
{
if (withdraw.length)
bgp_nlri_parse (peer, NULL, &withdraw);
zlog_debug ("rcvd End-of-RIB for IPv4 Unicast from %s", peer->host);
}
}
- if (peer->afc[AFI_IP][SAFI_MULTICAST])
+ if (peer->afc_nego[AFI_IP][SAFI_MULTICAST])
{
if (mp_update.length
&& mp_update.afi == AFI_IP
zlog_debug ("rcvd End-of-RIB for IPv4 Multicast from %s", peer->host);
}
}
- if (peer->afc[AFI_IP6][SAFI_UNICAST])
+ if (peer->afc_nego[AFI_IP6][SAFI_UNICAST])
{
if (mp_update.length
&& mp_update.afi == AFI_IP6
zlog_debug ("rcvd End-of-RIB for IPv6 Unicast from %s", peer->host);
}
}
- if (peer->afc[AFI_IP6][SAFI_MULTICAST])
+ if (peer->afc_nego[AFI_IP6][SAFI_MULTICAST])
{
if (mp_update.length
&& mp_update.afi == AFI_IP6
zlog_debug ("rcvd End-of-RIB for IPv6 Multicast from %s", peer->host);
}
}
- if (peer->afc[AFI_IP][SAFI_MPLS_VPN])
+ if (peer->afc_nego[AFI_IP][SAFI_MPLS_VPN])
{
if (mp_update.length
&& mp_update.afi == AFI_IP