"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "print-icmp6.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-icmp6.c  (tcpdump-4.99.0):print-icmp6.c  (tcpdump-4.99.1)
skipping to change at line 1515 skipping to change at line 1515
GET_BE_U_2(oph->nd_opt_hai_lifetime)); GET_BE_U_2(oph->nd_opt_hai_lifetime));
break; break;
case ND_OPT_ROUTE_INFO: case ND_OPT_ROUTE_INFO:
opri = (const struct nd_opt_route_info *)op; opri = (const struct nd_opt_route_info *)op;
ND_TCHECK_4(opri->nd_opt_rti_lifetime); ND_TCHECK_4(opri->nd_opt_rti_lifetime);
memset(&in6, 0, sizeof(in6)); memset(&in6, 0, sizeof(in6));
switch (opt_len) { switch (opt_len) {
case 1: case 1:
break; break;
case 2: case 2:
ND_TCHECK_8(opri + 1); GET_CPY_BYTES(&in6, opri + 1, 8);
memcpy(&in6, opri + 1, 8);
break; break;
case 3: case 3:
ND_TCHECK_16(opri + 1); GET_CPY_BYTES(&in6, opri + 1, 16);
memcpy(&in6, opri + 1, 16);
break; break;
default: default:
goto trunc; goto trunc;
} }
ND_PRINT(" %s/%u", ip6addr_string(ndo, (const u_char *)&i n6), ND_PRINT(" %s/%u", ip6addr_string(ndo, (const u_char *)&i n6),
GET_U_1(opri->nd_opt_rti_prefixlen)); GET_U_1(opri->nd_opt_rti_prefixlen));
ND_PRINT(", pref=%s", ND_PRINT(", pref=%s",
get_rtpref(GET_U_1(opri->nd_opt_rti_flags))); get_rtpref(GET_U_1(opri->nd_opt_rti_flags)));
ND_PRINT(", lifetime=%s", ND_PRINT(", lifetime=%s",
get_lifetime(GET_BE_U_4(opri->nd_opt_rti_lifet ime))); get_lifetime(GET_BE_U_4(opri->nd_opt_rti_lifet ime)));
 End of changes. 2 change blocks. 
4 lines changed or deleted 2 lines changed or added

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