"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "print-ip.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-ip.c  (tcpdump-4.99.0):print-ip.c  (tcpdump-4.99.1)
skipping to change at line 472 skipping to change at line 472
*/ */
if ((off & IP_OFFMASK) == 0) { if ((off & IP_OFFMASK) == 0) {
uint8_t nh = GET_U_1(ip->ip_p); uint8_t nh = GET_U_1(ip->ip_p);
if (nh != IPPROTO_TCP && nh != IPPROTO_UDP && if (nh != IPPROTO_TCP && nh != IPPROTO_UDP &&
nh != IPPROTO_SCTP && nh != IPPROTO_DCCP) { nh != IPPROTO_SCTP && nh != IPPROTO_DCCP) {
ND_PRINT("%s > %s: ", ND_PRINT("%s > %s: ",
GET_IPADDR_STRING(ip->ip_src), GET_IPADDR_STRING(ip->ip_src),
GET_IPADDR_STRING(ip->ip_dst)); GET_IPADDR_STRING(ip->ip_dst));
} }
/*
* Do a bounds check before calling ip_demux_print().
* At least the header data is required.
*/
if (!ND_TTEST_LEN((const u_char *)ip, hlen)) {
ND_PRINT(" [remaining caplen(%u) < header length(%u)]",
ND_BYTES_AVAILABLE_AFTER((const u_char *)ip),
hlen);
nd_trunc_longjmp(ndo);
}
ip_demux_print(ndo, (const u_char *)ip + hlen, len, 4, ip_demux_print(ndo, (const u_char *)ip + hlen, len, 4,
off & IP_MF, GET_U_1(ip->ip_ttl), nh, bp); off & IP_MF, GET_U_1(ip->ip_ttl), nh, bp);
} else { } else {
/* /*
* Ultra quiet now means that all this stuff should be * Ultra quiet now means that all this stuff should be
* suppressed. * suppressed.
*/ */
if (ndo->ndo_qflag > 1) { if (ndo->ndo_qflag > 1) {
nd_pop_packet_info(ndo); nd_pop_packet_info(ndo);
return; return;
} }
 End of changes. 2 change blocks. 
1 lines changed or deleted 11 lines changed or added

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