Skip to content

Commit

Permalink
The wireshark issue #1944 is fixed now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hannes Gredler committed Oct 31, 2023
1 parent 1e69842 commit 16a8ffe
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions code/lspgen/src/lspgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,13 +779,13 @@ lspgen_gen_ospf3_attr(struct lsdb_ctx_ *ctx)

/* Host name */
if (node->node_name) {
lsdb_reset_attr_template(&attr_template);
//attr_template.key.ordinal = 1;
lsdb_reset_attr_template(&attr_template);
attr_template.key.ordinal = 1;
attr_template.key.attr_cp[0] = OSPF_MSG_LSUPDATE;
attr_template.key.attr_cp[1] = OSPF_LSA_OPAQUE_AREA_RI;
attr_template.key.attr_cp[2] = OSPF_TLV_HOSTNAME;
strncpy(attr_template.key.hostname, node->node_name, sizeof(attr_template.key.hostname)-1);
lsdb_add_node_attr(node, &attr_template);
attr_template.key.attr_cp[2] = OSPF_TLV_HOSTNAME;
strncpy(attr_template.key.hostname, node->node_name, sizeof(attr_template.key.hostname)-1);
lsdb_add_node_attr(node, &attr_template);
}

/* IPv6 loopback prefix */
Expand All @@ -804,7 +804,7 @@ lspgen_gen_ospf3_attr(struct lsdb_ctx_ *ctx)
lsdb_add_node_attr(node, &attr_template);
} else {

// attr_template.key.ordinal = 1;
attr_template.key.ordinal = 1;
attr_template.key.prefix.sid = node->node_index;

/* For SR use the Extended-Intra-Area-Router-LSA */
Expand Down

0 comments on commit 16a8ffe

Please sign in to comment.