diff --git a/code/lspgen/src/lspgen.c b/code/lspgen/src/lspgen.c index 073148b3..cdb7a948 100644 --- a/code/lspgen/src/lspgen.c +++ b/code/lspgen/src/lspgen.c @@ -590,6 +590,7 @@ lspgen_gen_ospf2_attr(struct lsdb_ctx_ *ctx) /* IPv4 loopback prefix */ lsdb_reset_attr_template(&attr_template); addr = lspgen_load_addr((uint8_t*)&ctx->ipv4_node_prefix.address, sizeof(ipv4addr_t)); + addr += node->node_index; lspgen_store_addr(addr, (uint8_t*)&attr_template.key.prefix.ipv4_prefix.address, sizeof(ipv4addr_t)); attr_template.key.prefix.ipv4_prefix.len = ctx->ipv4_node_prefix.len; attr_template.key.attr_cp[0] = OSPF_MSG_LSUPDATE;