"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "print.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.c  (tcpdump-4.99.0):print.c  (tcpdump-4.99.1)
skipping to change at line 389 skipping to change at line 389
* capture length != 0, * capture length != 0,
* packet length != 0, * packet length != 0,
* capture length <= MAXIMUM_SNAPLEN, * capture length <= MAXIMUM_SNAPLEN,
* packet length <= MAXIMUM_SNAPLEN, * packet length <= MAXIMUM_SNAPLEN,
* packet length >= capture length. * packet length >= capture length.
* *
* Currently, there is no D-Bus printer, thus no need for * Currently, there is no D-Bus printer, thus no need for
* bigger lengths. * bigger lengths.
*/ */
ts_print(ndo, &h->ts); /*
* The header /usr/include/pcap/pcap.h in OpenBSD declares h->ts as
* struct bpf_timeval, not struct timeval. The former comes from
* /usr/include/net/bpf.h and uses 32-bit unsigned types instead of
* the types used in struct timeval.
*/
struct timeval tvbuf;
tvbuf.tv_sec = h->ts.tv_sec;
tvbuf.tv_usec = h->ts.tv_usec;
ts_print(ndo, &tvbuf);
/* /*
* Printers must check that they're not walking off the end of * Printers must check that they're not walking off the end of
* the packet. * the packet.
* Rather than pass it all the way down, we set this member * Rather than pass it all the way down, we set this member
* of the netdissect_options structure. * of the netdissect_options structure.
*/ */
ndo->ndo_snapend = sp + h->caplen; ndo->ndo_snapend = sp + h->caplen;
ndo->ndo_protocol = ""; ndo->ndo_protocol = "";
 End of changes. 1 change blocks. 
1 lines changed or deleted 10 lines changed or added

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