Skip to content

Commit

Permalink
7.0 isisd: The RFC states that v6 addresses are limited to 16 in a he…
Browse files Browse the repository at this point in the history
…llo … (#4476)

7.0 isisd: The RFC states that v6 addresses are limited to 16 in a hello …
  • Loading branch information
eqvinox authored Jun 6, 2019
2 parents 7f2115a + 4a61e97 commit 8052581
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions isisd/isis_tlvs.c
Original file line number Diff line number Diff line change
Expand Up @@ -3253,13 +3253,18 @@ void isis_tlvs_add_ipv6_addresses(struct isis_tlvs *tlvs,
{
struct listnode *node;
struct prefix_ipv6 *ip_addr;
unsigned int addr_count = 0;

for (ALL_LIST_ELEMENTS_RO(addresses, node, ip_addr)) {
if (addr_count >= 15)
break;

struct isis_ipv6_address *a =
XCALLOC(MTYPE_ISIS_TLV, sizeof(*a));

a->addr = ip_addr->prefix;
append_item(&tlvs->ipv6_address, (struct isis_item *)a);
addr_count++;
}
}

Expand Down

0 comments on commit 8052581

Please sign in to comment.