"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "print-olsr.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-olsr.c  (tcpdump-4.99.0):print-olsr.c  (tcpdump-4.99.1)
skipping to change at line 328 skipping to change at line 328
u_int msg_type, msg_len, msg_tlen, hello_len; u_int msg_type, msg_len, msg_tlen, hello_len;
uint16_t name_entry_type, name_entry_len; uint16_t name_entry_type, name_entry_len;
u_int name_entry_padding; u_int name_entry_padding;
uint8_t link_type, neighbor_type; uint8_t link_type, neighbor_type;
const u_char *tptr, *msg_data; const u_char *tptr, *msg_data;
ndo->ndo_protocol = "olsr"; ndo->ndo_protocol = "olsr";
tptr = pptr; tptr = pptr;
nd_print_protocol_caps(ndo);
ND_PRINT("v%u", (is_ipv6) ? 6 : 4);
if (length < sizeof(struct olsr_common)) { if (length < sizeof(struct olsr_common)) {
goto trunc; goto trunc;
} }
ND_TCHECK_LEN(tptr, sizeof(struct olsr_common)); ND_TCHECK_LEN(tptr, sizeof(struct olsr_common));
ptr.common = (const struct olsr_common *)tptr; ptr.common = (const struct olsr_common *)tptr;
length = ND_MIN(length, GET_BE_U_2(ptr.common->packet_len)); length = ND_MIN(length, GET_BE_U_2(ptr.common->packet_len));
ND_PRINT("OLSRv%i, seq 0x%04x, length %u", ND_PRINT(", seq 0x%04x, length %u",
(is_ipv6 == 0) ? 4 : 6,
GET_BE_U_2(ptr.common->packet_seq), GET_BE_U_2(ptr.common->packet_seq),
length); length);
tptr += sizeof(struct olsr_common); tptr += sizeof(struct olsr_common);
/* /*
* In non-verbose mode, just print version. * In non-verbose mode, just print version.
*/ */
if (ndo->ndo_vflag < 1) { if (ndo->ndo_vflag < 1) {
return; return;
 End of changes. 2 change blocks. 
2 lines changed or deleted 4 lines changed or added

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