Home | History | Annotate | Download | only in ldpd

Lines Matching defs:lma

467 	struct label_mapping *lma;
471 if ((lma = ldp_peer_get_lm(p, a, prefix)) != NULL) {
473 lma->label = label;
477 lma = malloc(sizeof(*lma));
479 if (!lma) {
484 memcpy(&lma->address, a, a->sa_len);
485 lma->prefix = prefix;
486 lma->label = label;
488 rb_tree_insert_node(&p->label_mapping_tree, lma);
497 struct label_mapping *lma;
499 if (a == NULL || (lma = ldp_peer_get_lm(p, a, prefix)) == NULL)
502 rb_tree_remove_node(&p->label_mapping_tree, lma);
503 free(lma);
526 struct label_mapping *lma;
528 while((lma = RB_TREE_MIN(&p->label_mapping_tree)) != NULL) {
529 rb_tree_remove_node(&p->label_mapping_tree, lma);
530 free(lma);