diff options
| author | Christian Franke <chris@opensourcerouting.org> | 2017-04-27 12:42:56 +0200 | 
|---|---|---|
| committer | Christian Franke <chris@opensourcerouting.org> | 2017-04-28 12:03:23 +0200 | 
| commit | 795c08fc9e07a316731e1a78123c67378458a661 (patch) | |
| tree | 3165b0e138fee8adab2cc9b63eda7115fd7b57bb /isisd | |
| parent | 94248997abd70f8e506e1909930828f02c9160ae (diff) | |
isisd: function lsp_te_tlv_fit is never used
Signed-off-by: Christian Franke <chris@opensourcerouting.org>
Diffstat (limited to 'isisd')
| -rw-r--r-- | isisd/isis_lsp.c | 58 | ||||
| -rw-r--r-- | isisd/isis_lsp.h | 2 | 
2 files changed, 0 insertions, 60 deletions
diff --git a/isisd/isis_lsp.c b/isisd/isis_lsp.c index f633a8fb78..d490bc47cd 100644 --- a/isisd/isis_lsp.c +++ b/isisd/isis_lsp.c @@ -1085,64 +1085,6 @@ lsp_tlv_fit (struct isis_lsp *lsp, struct list **from, struct list **to,    return;  } -/* Process IS_NEIGHBOURS TLV with TE subTLVs */ -void -lsp_te_tlv_fit (struct isis_lsp *lsp, struct list **from, struct list **to, int frag_thold) -{ -  int count, size = 0; -  struct listnode *node, *nextnode; -  struct te_is_neigh *elem; - -  /* Start computing real size of TLVs */ -  for (ALL_LIST_ELEMENTS (*from, node, nextnode, elem)) -    size = size + elem->sub_tlvs_length + IS_NEIGHBOURS_LEN; - -  /* can we fit all ? */ -  if (!FRAG_NEEDED (lsp->pdu, frag_thold, size)) -    { -      tlv_add_te_is_neighs (*from, lsp->pdu); -      if (listcount (*to) != 0) -        { -          for (ALL_LIST_ELEMENTS (*from, node, nextnode, elem)) -            { -              listnode_add (*to, elem); -              list_delete_node (*from, node); -            } -        } -      else -        { -          list_free (*to); -          *to = *from; -          *from = NULL; -        } -    } -  else -    { -      /* fit all we can */ -      /* Compute remaining place in LSP PDU */ -      count = FRAG_THOLD (lsp->pdu, frag_thold) - 2 - -        (STREAM_SIZE (lsp->pdu) - STREAM_REMAIN (lsp->pdu)); -      /* Determine size of TE SubTLVs */ -      elem = (struct te_is_neigh *)listgetdata ((struct listnode *)listhead (*from)); -      count = count - elem->sub_tlvs_length - IS_NEIGHBOURS_LEN; -      if (count > 0) -        { -          while (count > 0) -            { -              listnode_add (*to, listgetdata ((struct listnode *)listhead (*from))); -              listnode_delete (*from, listgetdata ((struct listnode *)listhead (*from))); - -              elem = (struct te_is_neigh *)listgetdata ((struct listnode *)listhead (*from)); -              count = count - elem->sub_tlvs_length - IS_NEIGHBOURS_LEN; -            } - -          tlv_add_te_is_neighs (*to, lsp->pdu); -        } -    } -  lsp->lsp_header->pdu_len = htons (stream_get_endp (lsp->pdu)); -  return; -} -  static u_int16_t  lsp_rem_lifetime (struct isis_area *area, int level)  { diff --git a/isisd/isis_lsp.h b/isisd/isis_lsp.h index 24fae57a7b..6f697df62c 100644 --- a/isisd/isis_lsp.h +++ b/isisd/isis_lsp.h @@ -108,8 +108,6 @@ void lsp_print_detail (struct isis_lsp *lsp, struct vty *vty, char dynhost);  int lsp_print_all (struct vty *vty, dict_t * lspdb, char detail,  		   char dynhost);  const char *lsp_bits2string (u_char *); -void lsp_te_tlv_fit (struct isis_lsp *lsp, struct list **from, -		     struct list **to, int frag_thold);  /* sets SRMflags for all active circuits of an lsp */  void lsp_set_all_srmflags (struct isis_lsp *lsp);  | 
