"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "print-isoclns.c" between
tcpdump-4.99.0.tar.gz and tcpdump-4.99.1.tar.gz

About: tcpdump is a tool for network monitoring and data acquisition.

print-isoclns.c  (tcpdump-4.99.0):print-isoclns.c  (tcpdump-4.99.1)
skipping to change at line 2306 skipping to change at line 2306
bit_length); bit_length);
return (0); return (0);
} }
tptr+=2; tptr+=2;
processed+=2; processed+=2;
} else } else
return (0); /* somebody is fooling us */ return (0); /* somebody is fooling us */
byte_length = (bit_length + 7) / 8; /* prefix has variable length encoding * / byte_length = (bit_length + 7) / 8; /* prefix has variable length encoding * /
ND_TCHECK_LEN(tptr, byte_length);
memset(prefix, 0, sizeof(prefix)); /* clear the copy buffer */ memset(prefix, 0, sizeof(prefix)); /* clear the copy buffer */
memcpy(prefix,tptr,byte_length); /* copy as much as is stored in the TLV */ GET_CPY_BYTES(prefix,tptr,byte_length); /* copy as much as is stored in t he TLV */
tptr+=byte_length; tptr+=byte_length;
processed+=byte_length; processed+=byte_length;
if (afi == AF_INET) if (afi == AF_INET)
ND_PRINT("%sIPv4 prefix: %15s/%u", ND_PRINT("%sIPv4 prefix: %15s/%u",
ident, ident,
ipaddr_string(ndo, prefix), /* local buffer, not packet data; don 't use GET_IPADDR_STRING() */ ipaddr_string(ndo, prefix), /* local buffer, not packet data; don 't use GET_IPADDR_STRING() */
bit_length); bit_length);
else if (afi == AF_INET6) else if (afi == AF_INET6)
ND_PRINT("%sIPv6 prefix: %s/%u", ND_PRINT("%sIPv6 prefix: %s/%u",
skipping to change at line 2359 skipping to change at line 2358
tptr+=2; tptr+=2;
/* prepend the indent string */ /* prepend the indent string */
snprintf(ident_buffer, sizeof(ident_buffer), "%s ",ident); snprintf(ident_buffer, sizeof(ident_buffer), "%s ",ident);
if (!isis_print_ip_reach_subtlv(ndo, tptr, subtlvtype, subtlvlen, id ent_buffer)) if (!isis_print_ip_reach_subtlv(ndo, tptr, subtlvtype, subtlvlen, id ent_buffer))
return(0); return(0);
tptr+=subtlvlen; tptr+=subtlvlen;
sublen-=(subtlvlen+2); sublen-=(subtlvlen+2);
} }
} }
return (processed); return (processed);
trunc:
return 0;
} }
static void static void
isis_print_router_cap_subtlv(netdissect_options *ndo, const uint8_t *tptr, uint8 _t tlen) isis_print_router_cap_subtlv(netdissect_options *ndo, const uint8_t *tptr, uint8 _t tlen)
{ {
uint8_t subt, subl; uint8_t subt, subl;
while (tlen >= 2) { while (tlen >= 2) {
subt = GET_U_1(tptr); subt = GET_U_1(tptr);
subl = GET_U_1(tptr+1); subl = GET_U_1(tptr+1);
 End of changes. 3 change blocks. 
4 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)