Skip to content

Commit

Permalink
ospf6d: install handlers for E-LSAs
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Cooks <[email protected]>
  • Loading branch information
acooks committed Jul 25, 2024
1 parent 7a40edd commit e5bb8dd
Showing 1 changed file with 48 additions and 4 deletions.
52 changes: 48 additions & 4 deletions ospf6d/ospf6_intra.c
Original file line number Diff line number Diff line change
Expand Up @@ -2385,38 +2385,82 @@ static struct ospf6_lsa_handler router_handler = {
.lh_short_name = "Rtr",
.lh_show = ospf6_router_lsa_show,
.lh_get_prefix_str = ospf6_router_lsa_get_nbr_id,
.lh_debug = 0};
.lh_debug = 0
};

static struct ospf6_lsa_handler e_router_handler = {
.lh_type = OSPF6_LSTYPE_E_ROUTER,
.lh_name = "E-Router",
.lh_short_name = "ERtr",
.lh_show = ospf6_router_lsa_show,
.lh_get_prefix_str = ospf6_router_lsa_get_nbr_id,
.lh_debug = 0
};

static struct ospf6_lsa_handler network_handler = {
.lh_type = OSPF6_LSTYPE_NETWORK,
.lh_name = "Network",
.lh_short_name = "Net",
.lh_show = ospf6_network_lsa_show,
.lh_get_prefix_str = ospf6_network_lsa_get_ar_id,
.lh_debug = 0};
.lh_debug = 0
};

static struct ospf6_lsa_handler e_network_handler = {
.lh_type = OSPF6_LSTYPE_E_NETWORK,
.lh_name = "E-Network",
.lh_short_name = "ENet",
.lh_show = ospf6_network_lsa_show,
.lh_get_prefix_str = ospf6_network_lsa_get_ar_id,
.lh_debug = 0
};

static struct ospf6_lsa_handler link_handler = {
.lh_type = OSPF6_LSTYPE_LINK,
.lh_name = "Link",
.lh_short_name = "Lnk",
.lh_show = ospf6_link_lsa_show,
.lh_get_prefix_str = ospf6_link_lsa_get_prefix_str,
.lh_debug = 0};
.lh_debug = 0
};

static struct ospf6_lsa_handler e_link_handler = {
.lh_type = OSPF6_LSTYPE_E_LINK,
.lh_name = "E-Link",
.lh_short_name = "ELnk",
.lh_show = ospf6_link_lsa_show,
.lh_get_prefix_str = ospf6_link_lsa_get_prefix_str,
.lh_debug = 0
};

static struct ospf6_lsa_handler intra_prefix_handler = {
.lh_type = OSPF6_LSTYPE_INTRA_PREFIX,
.lh_name = "Intra-Prefix",
.lh_short_name = "INP",
.lh_show = ospf6_intra_prefix_lsa_show,
.lh_get_prefix_str = ospf6_intra_prefix_lsa_get_prefix_str,
.lh_debug = 0};
.lh_debug = 0
};

static struct ospf6_lsa_handler e_intra_prefix_handler = {
.lh_type = OSPF6_LSTYPE_E_INTRA_PREFIX,
.lh_name = "E-Intra-Prefix",
.lh_short_name = "EINP",
.lh_show = ospf6_intra_prefix_lsa_show,
.lh_get_prefix_str = ospf6_intra_prefix_lsa_get_prefix_str,
.lh_debug = 0
};

void ospf6_intra_init(void)
{
ospf6_install_lsa_handler(&router_handler);
ospf6_install_lsa_handler(&e_router_handler);
ospf6_install_lsa_handler(&network_handler);
ospf6_install_lsa_handler(&e_network_handler);
ospf6_install_lsa_handler(&link_handler);
ospf6_install_lsa_handler(&e_link_handler);
ospf6_install_lsa_handler(&intra_prefix_handler);
ospf6_install_lsa_handler(&e_intra_prefix_handler);
}

DEFUN (debug_ospf6_brouter,
Expand Down

0 comments on commit e5bb8dd

Please sign in to comment.