"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "print-l2tp.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-l2tp.c  (tcpdump-4.99.0):print-l2tp.c  (tcpdump-4.99.1)
skipping to change at line 807 skipping to change at line 807
ND_PRINT("Ns=%u,", GET_BE_U_2(ptr)); ND_PRINT("Ns=%u,", GET_BE_U_2(ptr));
ptr += 2; ptr += 2;
cnt += 2; cnt += 2;
ND_PRINT("Nr=%u", GET_BE_U_2(ptr)); ND_PRINT("Nr=%u", GET_BE_U_2(ptr));
ptr += 2; ptr += 2;
cnt += 2; cnt += 2;
} }
if (flag_o) { /* Offset Size */ if (flag_o) { /* Offset Size */
pad = GET_BE_U_2(ptr); pad = GET_BE_U_2(ptr);
/* Offset padding octets in packet buffer? */
ND_TCHECK_LEN(ptr + 2, pad);
ptr += (2 + pad); ptr += (2 + pad);
cnt += (2 + pad); cnt += (2 + pad);
} }
if (flag_l) { if (flag_l) {
if (length < l2tp_len) { if (length < l2tp_len) {
ND_PRINT(" Length %u larger than packet", l2tp_len); ND_PRINT(" Length %u larger than packet", l2tp_len);
return; return;
} }
length = l2tp_len; length = l2tp_len;
skipping to change at line 852 skipping to change at line 854
} }
cnt += avp_length; cnt += avp_length;
ptr += avp_length; ptr += avp_length;
} }
} }
} else { } else {
ND_PRINT(" {"); ND_PRINT(" {");
ppp_print(ndo, ptr, length - cnt); ppp_print(ndo, ptr, length - cnt);
ND_PRINT("}"); ND_PRINT("}");
} }
return;
trunc:
nd_print_trunc(ndo);
} }
 End of changes. 2 change blocks. 
0 lines changed or deleted 5 lines changed or added

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