eigrp_topology_get_successor(struct eigrp_prefix_entry *table_node)
{
struct list *successors = list_new();
- ;
struct eigrp_neighbor_entry *data;
struct listnode *node1, *node2;
+
for (ALL_LIST_ELEMENTS(table_node->entries, node1, node2, data))
{
if (data->flags & EIGRP_NEIGHBOR_ENTRY_SUCCESSOR_FLAG)
/* EIGRP pass nexthop and metric */
SET_FLAG (message, ZAPI_MESSAGE_NEXTHOP);
- SET_FLAG (message, ZAPI_MESSAGE_METRIC);
/* Distance value. */
// distance = eigrp_distance_apply (p, er);
zclient_create_header (s, ZEBRA_IPV4_ROUTE_ADD, VRF_DEFAULT);
stream_putc (s, ZEBRA_ROUTE_EIGRP);
stream_putw (s, 0);
- stream_putc (s, flags);
+ stream_putl (s, flags);
stream_putc (s, message);
stream_putw (s, SAFI_UNICAST);