"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "print-dhcp6.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-dhcp6.c  (tcpdump-4.99.0):print-dhcp6.c  (tcpdump-4.99.1)
skipping to change at line 411 skipping to change at line 411
break; break;
case DH6OPT_ELAPSED_TIME: case DH6OPT_ELAPSED_TIME:
if (optlen != 2) { if (optlen != 2) {
ND_PRINT(" ?)"); ND_PRINT(" ?)");
break; break;
} }
tp = (const u_char *)(dh6o + 1); tp = (const u_char *)(dh6o + 1);
ND_PRINT(" %u)", GET_BE_U_2(tp)); ND_PRINT(" %u)", GET_BE_U_2(tp));
break; break;
case DH6OPT_RELAY_MSG: case DH6OPT_RELAY_MSG:
{
const u_char *snapend_save;
ND_PRINT(" ("); ND_PRINT(" (");
tp = (const u_char *)(dh6o + 1); tp = (const u_char *)(dh6o + 1);
/*
* Update the snapend to the end of the option before
* calling recursively dhcp6_print() for the nested
* packet. Other options may be present after the
* nested DHCPv6 packet. This prevents that, in
* dhcp6_print(), for the nested DHCPv6 packet, the
* remaining length < remaining caplen.
*/
snapend_save = ndo->ndo_snapend;
ndo->ndo_snapend = ND_MIN(tp + optlen, ndo->ndo_snapend);
dhcp6_print(ndo, tp, optlen); dhcp6_print(ndo, tp, optlen);
ndo->ndo_snapend = snapend_save;
ND_PRINT(")"); ND_PRINT(")");
break; break;
}
case DH6OPT_AUTH: case DH6OPT_AUTH:
if (optlen < 11) { if (optlen < 11) {
ND_PRINT(" ?)"); ND_PRINT(" ?)");
break; break;
} }
tp = (const u_char *)(dh6o + 1); tp = (const u_char *)(dh6o + 1);
auth_proto = GET_U_1(tp); auth_proto = GET_U_1(tp);
switch (auth_proto) { switch (auth_proto) {
case DH6OPT_AUTHPROTO_DELAYED: case DH6OPT_AUTHPROTO_DELAYED:
ND_PRINT(" proto: delayed"); ND_PRINT(" proto: delayed");
 End of changes. 4 change blocks. 
0 lines changed or deleted 15 lines changed or added

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