version 1.1.1.3, 2013/07/21 23:54:39
|
version 1.1.1.4, 2016/11/02 10:09:10
|
Line 115 parse_tlvs (char *areatag, u_char * stream, int size,
|
Line 115 parse_tlvs (char *areatag, u_char * stream, int size,
|
struct ipv6_reachability *ipv6_reach; |
struct ipv6_reachability *ipv6_reach; |
int prefix_octets; |
int prefix_octets; |
#endif /* HAVE_IPV6 */ |
#endif /* HAVE_IPV6 */ |
u_char virtual; |
|
int value_len, retval = ISIS_OK; |
int value_len, retval = ISIS_OK; |
u_char *start = stream, *pnt = stream, *endpnt; |
u_char *start = stream, *pnt = stream, *endpnt; |
|
|
Line 179 parse_tlvs (char *areatag, u_char * stream, int size,
|
Line 178 parse_tlvs (char *areatag, u_char * stream, int size,
|
* | Virtual Flag | |
* | Virtual Flag | |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
* +-------+-------+-------+-------+-------+-------+-------+-------+ |
*/ |
*/ |
virtual = *pnt; /* FIXME: what is the use for this? */ | /* virtual = *pnt; FIXME: what is the use for this? */ |
pnt++; |
pnt++; |
value_len++; |
value_len++; |
/* +-------+-------+-------+-------+-------+-------+-------+-------+ |
/* +-------+-------+-------+-------+-------+-------+-------+-------+ |
Line 742 parse_tlvs (char *areatag, u_char * stream, int size,
|
Line 741 parse_tlvs (char *areatag, u_char * stream, int size,
|
zlog_warn ("ISIS-TLV (%s): unsupported TLV type %d, length %d", |
zlog_warn ("ISIS-TLV (%s): unsupported TLV type %d, length %d", |
areatag, type, length); |
areatag, type, length); |
|
|
retval = ISIS_WARNING; |
|
pnt += length; |
pnt += length; |
break; |
break; |
} |
} |
Line 927 tlv_add_ip_addrs (struct list *ip_addrs, struct stream
|
Line 925 tlv_add_ip_addrs (struct list *ip_addrs, struct stream
|
struct prefix_ipv4 *ipv4; |
struct prefix_ipv4 *ipv4; |
u_char value[255]; |
u_char value[255]; |
u_char *pos = value; |
u_char *pos = value; |
int retval; |
|
|
|
for (ALL_LIST_ELEMENTS_RO (ip_addrs, node, ipv4)) |
for (ALL_LIST_ELEMENTS_RO (ip_addrs, node, ipv4)) |
{ |
{ |
Line 996 tlv_add_lsp_entries (struct list *lsps, struct stream
|
Line 993 tlv_add_lsp_entries (struct list *lsps, struct stream
|
return add_tlv (LSP_ENTRIES, pos - value, value, stream); |
return add_tlv (LSP_ENTRIES, pos - value, value, stream); |
} |
} |
|
|
int | static int |
tlv_add_ipv4_reachs (struct list *ipv4_reachs, struct stream *stream) | tlv_add_ipv4_reachs (u_char tag, struct list *ipv4_reachs, struct stream *stream) |
{ |
{ |
struct listnode *node; |
struct listnode *node; |
struct ipv4_reachability *reach; |
struct ipv4_reachability *reach; |
Line 1010 tlv_add_ipv4_reachs (struct list *ipv4_reachs, struct
|
Line 1007 tlv_add_ipv4_reachs (struct list *ipv4_reachs, struct
|
if (pos - value + IPV4_REACH_LEN > 255) |
if (pos - value + IPV4_REACH_LEN > 255) |
{ |
{ |
retval = |
retval = |
add_tlv (IPV4_INT_REACHABILITY, pos - value, value, stream); | add_tlv (tag, pos - value, value, stream); |
if (retval != ISIS_OK) |
if (retval != ISIS_OK) |
return retval; |
return retval; |
pos = value; |
pos = value; |
Line 1029 tlv_add_ipv4_reachs (struct list *ipv4_reachs, struct
|
Line 1026 tlv_add_ipv4_reachs (struct list *ipv4_reachs, struct
|
pos += IPV4_MAX_BYTELEN; |
pos += IPV4_MAX_BYTELEN; |
} |
} |
|
|
return add_tlv (IPV4_INT_REACHABILITY, pos - value, value, stream); | return add_tlv (tag, pos - value, value, stream); |
} |
} |
|
|
|
int |
|
tlv_add_ipv4_int_reachs (struct list *ipv4_reachs, struct stream *stream) |
|
{ |
|
return tlv_add_ipv4_reachs(IPV4_INT_REACHABILITY, ipv4_reachs, stream); |
|
} |
|
|
|
int |
|
tlv_add_ipv4_ext_reachs (struct list *ipv4_reachs, struct stream *stream) |
|
{ |
|
return tlv_add_ipv4_reachs(IPV4_EXT_REACHABILITY, ipv4_reachs, stream); |
|
} |
|
|
|
|
int |
int |
tlv_add_te_ipv4_reachs (struct list *te_ipv4_reachs, struct stream *stream) |
tlv_add_te_ipv4_reachs (struct list *te_ipv4_reachs, struct stream *stream) |