/dports/net/frr7-pythontools/frr-frr-7.5.1/lib/ |
H A D | nexthop.c | 46 nhl1 = nh1->nh_label; in _nexthop_labels_cmp() 47 nhl2 = nh2->nh_label; in _nexthop_labels_cmp() 435 struct mpls_label_stack *nh_label; in nexthop_add_labels() local 447 nh_label = XCALLOC(MTYPE_NH_LABEL, in nexthop_add_labels() 450 nh_label->num_labels = num_labels; in nexthop_add_labels() 452 nh_label->label[i] = *(labels + i); in nexthop_add_labels() 453 nexthop->nh_label = nh_label; in nexthop_add_labels() 553 if (nexthop->nh_label) { in nexthop_hash_quick() 656 if (nexthop->nh_label) in nexthop_copy_no_recurse() 658 nexthop->nh_label->num_labels, in nexthop_copy_no_recurse() [all …]
|
H A D | nexthop_group.c | 1011 if (nh->nh_label && nh->nh_label->num_labels > 0) { in nexthop_group_write_nexthop() 1014 mpls_label2str(nh->nh_label->num_labels, in nexthop_group_write_nexthop() 1015 nh->nh_label->label, in nexthop_group_write_nexthop() 1074 if (nh->nh_label && nh->nh_label->num_labels > 0) { in nexthop_group_json_nexthop() 1077 mpls_label2str(nh->nh_label->num_labels, nh->nh_label->label, in nexthop_group_json_nexthop()
|
H A D | nexthop.h | 129 struct mpls_label_stack *nh_label; member
|
/dports/net/frr7/frr-frr-7.5.1/lib/ |
H A D | nexthop.c | 46 nhl1 = nh1->nh_label; in _nexthop_labels_cmp() 47 nhl2 = nh2->nh_label; in _nexthop_labels_cmp() 435 struct mpls_label_stack *nh_label; in nexthop_add_labels() local 447 nh_label = XCALLOC(MTYPE_NH_LABEL, in nexthop_add_labels() 450 nh_label->num_labels = num_labels; in nexthop_add_labels() 452 nh_label->label[i] = *(labels + i); in nexthop_add_labels() 453 nexthop->nh_label = nh_label; in nexthop_add_labels() 553 if (nexthop->nh_label) { in nexthop_hash_quick() 656 if (nexthop->nh_label) in nexthop_copy_no_recurse() 658 nexthop->nh_label->num_labels, in nexthop_copy_no_recurse() [all …]
|
H A D | nexthop_group.c | 1011 if (nh->nh_label && nh->nh_label->num_labels > 0) { in nexthop_group_write_nexthop() 1014 mpls_label2str(nh->nh_label->num_labels, in nexthop_group_write_nexthop() 1015 nh->nh_label->label, in nexthop_group_write_nexthop() 1074 if (nh->nh_label && nh->nh_label->num_labels > 0) { in nexthop_group_json_nexthop() 1077 mpls_label2str(nh->nh_label->num_labels, nh->nh_label->label, in nexthop_group_json_nexthop()
|
H A D | nexthop.h | 129 struct mpls_label_stack *nh_label; member
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/zebra/ |
H A D | rt_socket.c | 48 static int kernel_rtm_add_labels(struct mpls_label_stack *nh_label, in kernel_rtm_add_labels() argument 51 if (nh_label->num_labels > 1) { in kernel_rtm_add_labels() 54 __func__, nh_label->num_labels); in kernel_rtm_add_labels() 61 smpls->smpls_label = htonl(nh_label->label[0] << MPLS_LABEL_OFFSET); in kernel_rtm_add_labels() 226 if (nexthop->nh_label) { in kernel_rtm() 227 if (kernel_rtm_add_labels(nexthop->nh_label, in kernel_rtm()
|
H A D | zebra_pw.c | 268 if (!nexthop->nh_label) { in zebra_pw_check_reachability() 560 if (nexthop->nh_label) in vty_show_mpls_pseudowire_detail() 562 nexthop->nh_label->label[0]); in vty_show_mpls_pseudowire_detail() 577 if (nexthop->nh_label) in vty_show_mpls_pseudowire_detail() 579 nexthop->nh_label->label[0]); in vty_show_mpls_pseudowire_detail() 634 if (nexthop->nh_label) in vty_show_mpls_pseudowire() 637 nexthop->nh_label->label[0]); in vty_show_mpls_pseudowire() 654 if (nexthop->nh_label) in vty_show_mpls_pseudowire() 657 nexthop->nh_label->label[0]); in vty_show_mpls_pseudowire()
|
H A D | zebra_mpls_openbsd.c | 106 htonl(nhlfe->nexthop->nh_label->label[0] in kernel_send_rtmsg_v4() 116 if (nhlfe->nexthop->nh_label->label[0] == MPLS_LABEL_IMPLNULL) in kernel_send_rtmsg_v4() 213 htonl(nhlfe->nexthop->nh_label->label[0] in kernel_send_rtmsg_v6() 223 if (nhlfe->nexthop->nh_label->label[0] == MPLS_LABEL_IMPLNULL) in kernel_send_rtmsg_v6() 277 if (nhlfe->nexthop->nh_label->num_labels > 1) { in kernel_lsp_cmd() 281 nhlfe->nexthop->nh_label->num_labels); in kernel_lsp_cmd()
|
H A D | zebra_mpls.c | 249 nexthop->nh_label->num_labels, in lsp_install() 250 nexthop->nh_label->label, in lsp_install() 260 nexthop->nh_label->label[0]); in lsp_install() 1397 nhlfe->nexthop->nh_label->label[0] = nh_label->label[0]; in nhlfe_out_label_update() 1505 nexthop->nh_label->label[0]); in nhlfe_json() 1571 nexthop->nh_label->label, in nhlfe_print() 2391 if (nh->nh_label == NULL || nh->nh_label->num_labels == 0) in zebra_mpls_lsp_add_nh() 2395 nh->nh_label->num_labels, nh->nh_label->label, in zebra_mpls_lsp_add_nh() 2411 if (nh->nh_label == NULL || nh->nh_label->num_labels == 0) in zebra_mpls_lsp_add_backup_nh() 2416 nh->nh_label->label, true); in zebra_mpls_lsp_add_backup_nh() [all …]
|
H A D | zebra_srte.c | 316 if (!nhlfe->nexthop->nh_label in zebra_sr_policy_bsid_install() 317 || !nhlfe->nexthop->nh_label->num_labels in zebra_sr_policy_bsid_install() 318 || nhlfe->nexthop->nh_label->label[0] in zebra_sr_policy_bsid_install()
|
H A D | zebra_nhg.c | 1696 if (!newhop->nh_label || !newhop->nh_label->num_labels in nexthop_set_resolved() 1697 || newhop->nh_label->label[0] == MPLS_LABEL_IMPLICIT_NULL) in nexthop_set_resolved() 1703 } else if (newhop->nh_label) { in nexthop_set_resolved() 1704 for (i = 0; i < newhop->nh_label->num_labels; i++) { in nexthop_set_resolved() 1712 labels[num_labels++] = newhop->nh_label->label[i]; in nexthop_set_resolved() 1718 if (nexthop->nh_label) { in nexthop_set_resolved() 1719 for (i = 0; i < nexthop->nh_label->num_labels; i++) { in nexthop_set_resolved() 1727 labels[num_labels++] = nexthop->nh_label->label[i]; in nexthop_set_resolved()
|
H A D | zebra_vty.c | 391 if (nexthop->nh_label && nexthop->nh_label->num_labels) { in show_nexthop_detail_helper() 393 mpls_label2str(nexthop->nh_label->num_labels, in show_nexthop_detail_helper() 394 nexthop->nh_label->label, buf, in show_nexthop_detail_helper() 583 if (nexthop->nh_label && nexthop->nh_label->num_labels) { in show_route_nexthop_helper() 585 mpls_label2str(nexthop->nh_label->num_labels, in show_route_nexthop_helper() 586 nexthop->nh_label->label, buf, in show_route_nexthop_helper() 763 if (nexthop->nh_label in show_nexthop_json_helper() 764 && nexthop->nh_label->num_labels) { in show_nexthop_json_helper() 769 < nexthop->nh_label->num_labels; in show_nexthop_json_helper() 774 nexthop->nh_label->label in show_nexthop_json_helper()
|
H A D | rt_netlink.c | 1098 static int build_label_stack(struct mpls_label_stack *nh_label, in build_label_stack() argument 1105 for (int i = 0; nh_label && i < nh_label->num_labels; i++) { in build_label_stack() 1106 if (nh_label->label[i] == MPLS_LABEL_IMPLICIT_NULL) in build_label_stack() 1112 nh_label->label[i]); in build_label_stack() 1115 nh_label->label[i]); in build_label_stack() 1121 mpls_lse_encode(nh_label->label[i], 0, 0, 0); in build_label_stack() 1128 static bool _netlink_route_encode_label_info(struct mpls_label_stack *nh_label, in _netlink_route_encode_label_info() argument 1146 build_label_stack(nh_label, out_lse, label_buf, label_buf_size); in _netlink_route_encode_label_info() 1238 if (!_netlink_route_encode_label_info(nexthop->nh_label, nlmsg, in _netlink_route_build_singlepath() 1380 if (!_netlink_route_encode_label_info(nexthop->nh_label, nlmsg, in _netlink_route_build_multipath() [all …]
|
/dports/net/frr7/frr-frr-7.5.1/zebra/ |
H A D | rt_socket.c | 48 static int kernel_rtm_add_labels(struct mpls_label_stack *nh_label, in kernel_rtm_add_labels() argument 51 if (nh_label->num_labels > 1) { in kernel_rtm_add_labels() 54 __func__, nh_label->num_labels); in kernel_rtm_add_labels() 61 smpls->smpls_label = htonl(nh_label->label[0] << MPLS_LABEL_OFFSET); in kernel_rtm_add_labels() 226 if (nexthop->nh_label) { in kernel_rtm() 227 if (kernel_rtm_add_labels(nexthop->nh_label, in kernel_rtm()
|
H A D | zebra_pw.c | 268 if (!nexthop->nh_label) { in zebra_pw_check_reachability() 560 if (nexthop->nh_label) in vty_show_mpls_pseudowire_detail() 562 nexthop->nh_label->label[0]); in vty_show_mpls_pseudowire_detail() 577 if (nexthop->nh_label) in vty_show_mpls_pseudowire_detail() 579 nexthop->nh_label->label[0]); in vty_show_mpls_pseudowire_detail() 634 if (nexthop->nh_label) in vty_show_mpls_pseudowire() 637 nexthop->nh_label->label[0]); in vty_show_mpls_pseudowire() 654 if (nexthop->nh_label) in vty_show_mpls_pseudowire() 657 nexthop->nh_label->label[0]); in vty_show_mpls_pseudowire()
|
H A D | zebra_mpls_openbsd.c | 106 htonl(nhlfe->nexthop->nh_label->label[0] in kernel_send_rtmsg_v4() 116 if (nhlfe->nexthop->nh_label->label[0] == MPLS_LABEL_IMPLNULL) in kernel_send_rtmsg_v4() 213 htonl(nhlfe->nexthop->nh_label->label[0] in kernel_send_rtmsg_v6() 223 if (nhlfe->nexthop->nh_label->label[0] == MPLS_LABEL_IMPLNULL) in kernel_send_rtmsg_v6() 277 if (nhlfe->nexthop->nh_label->num_labels > 1) { in kernel_lsp_cmd() 281 nhlfe->nexthop->nh_label->num_labels); in kernel_lsp_cmd()
|
H A D | zebra_mpls.c | 249 nexthop->nh_label->num_labels, in lsp_install() 250 nexthop->nh_label->label, in lsp_install() 260 nexthop->nh_label->label[0]); in lsp_install() 1397 nhlfe->nexthop->nh_label->label[0] = nh_label->label[0]; in nhlfe_out_label_update() 1505 nexthop->nh_label->label[0]); in nhlfe_json() 1571 nexthop->nh_label->label, in nhlfe_print() 2391 if (nh->nh_label == NULL || nh->nh_label->num_labels == 0) in zebra_mpls_lsp_add_nh() 2395 nh->nh_label->num_labels, nh->nh_label->label, in zebra_mpls_lsp_add_nh() 2411 if (nh->nh_label == NULL || nh->nh_label->num_labels == 0) in zebra_mpls_lsp_add_backup_nh() 2416 nh->nh_label->label, true); in zebra_mpls_lsp_add_backup_nh() [all …]
|
H A D | zebra_srte.c | 316 if (!nhlfe->nexthop->nh_label in zebra_sr_policy_bsid_install() 317 || !nhlfe->nexthop->nh_label->num_labels in zebra_sr_policy_bsid_install() 318 || nhlfe->nexthop->nh_label->label[0] in zebra_sr_policy_bsid_install()
|
H A D | zebra_nhg.c | 1696 if (!newhop->nh_label || !newhop->nh_label->num_labels in nexthop_set_resolved() 1697 || newhop->nh_label->label[0] == MPLS_LABEL_IMPLICIT_NULL) in nexthop_set_resolved() 1703 } else if (newhop->nh_label) { in nexthop_set_resolved() 1704 for (i = 0; i < newhop->nh_label->num_labels; i++) { in nexthop_set_resolved() 1712 labels[num_labels++] = newhop->nh_label->label[i]; in nexthop_set_resolved() 1718 if (nexthop->nh_label) { in nexthop_set_resolved() 1719 for (i = 0; i < nexthop->nh_label->num_labels; i++) { in nexthop_set_resolved() 1727 labels[num_labels++] = nexthop->nh_label->label[i]; in nexthop_set_resolved()
|
H A D | zebra_vty.c | 391 if (nexthop->nh_label && nexthop->nh_label->num_labels) { in show_nexthop_detail_helper() 393 mpls_label2str(nexthop->nh_label->num_labels, in show_nexthop_detail_helper() 394 nexthop->nh_label->label, buf, in show_nexthop_detail_helper() 583 if (nexthop->nh_label && nexthop->nh_label->num_labels) { in show_route_nexthop_helper() 585 mpls_label2str(nexthop->nh_label->num_labels, in show_route_nexthop_helper() 586 nexthop->nh_label->label, buf, in show_route_nexthop_helper() 763 if (nexthop->nh_label in show_nexthop_json_helper() 764 && nexthop->nh_label->num_labels) { in show_nexthop_json_helper() 769 < nexthop->nh_label->num_labels; in show_nexthop_json_helper() 774 nexthop->nh_label->label in show_nexthop_json_helper()
|
H A D | rt_netlink.c | 1098 static int build_label_stack(struct mpls_label_stack *nh_label, in build_label_stack() argument 1105 for (int i = 0; nh_label && i < nh_label->num_labels; i++) { in build_label_stack() 1106 if (nh_label->label[i] == MPLS_LABEL_IMPLICIT_NULL) in build_label_stack() 1112 nh_label->label[i]); in build_label_stack() 1115 nh_label->label[i]); in build_label_stack() 1121 mpls_lse_encode(nh_label->label[i], 0, 0, 0); in build_label_stack() 1128 static bool _netlink_route_encode_label_info(struct mpls_label_stack *nh_label, in _netlink_route_encode_label_info() argument 1146 build_label_stack(nh_label, out_lse, label_buf, label_buf_size); in _netlink_route_encode_label_info() 1238 if (!_netlink_route_encode_label_info(nexthop->nh_label, nlmsg, in _netlink_route_build_singlepath() 1380 if (!_netlink_route_encode_label_info(nexthop->nh_label, nlmsg, in _netlink_route_build_multipath() [all …]
|
/dports/net/ryu/ryu-4.26/ryu/services/protocols/bgp/info_base/ |
H A D | vrf.py | 239 nh_label = table_manager.get_nexthop_label(label_key) 240 if not nh_label: 241 nh_label = table_manager.get_next_vpnv4_label() 242 table_manager.set_nexthop_label(label_key, nh_label) 243 label_list.append(nh_label)
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/sharpd/ |
H A D | sharp_zebra.c | 145 if (nh->nh_label == NULL || in sharp_install_lsps_helper() 146 nh->nh_label->num_labels == 0) in sharp_install_lsps_helper() 180 if (nh->nh_label == NULL || in sharp_install_lsps_helper() 181 nh->nh_label->num_labels == 0) in sharp_install_lsps_helper()
|
/dports/net/frr7/frr-frr-7.5.1/sharpd/ |
H A D | sharp_zebra.c | 145 if (nh->nh_label == NULL || in sharp_install_lsps_helper() 146 nh->nh_label->num_labels == 0) in sharp_install_lsps_helper() 180 if (nh->nh_label == NULL || in sharp_install_lsps_helper() 181 nh->nh_label->num_labels == 0) in sharp_install_lsps_helper()
|