Age | Commit message (Collapse) | Author | Files | Lines |
|
svn path=/trunk/; revision=43157
|
|
svn path=/trunk/; revision=42998
|
|
which could use lseek() and were thus expensive due to system call
overhead. To avoid making a system call for every packet on a
sequential read, we maintained a data_offset field in the wtap structure
for sequential reads.
It's now a routine that just returns information from the FILE_T data
structure, so it's cheap. Use it, rather than maintaining the data_offset
field.
Readers for some file formats need to maintain file offset themselves;
have them do so in their private data structures.
svn path=/trunk/; revision=42423
|
|
Write timetamps for the interface statistic blocks the way specified
by http://www.winpcap.org/ntar/draft/PCAP-DumpFileFormat.html
svn path=/trunk/; revision=42080
|
|
svn path=/trunk/; revision=42079
|
|
svn path=/trunk/; revision=41773
|
|
svn path=/trunk/; revision=41716
|
|
svn path=/trunk/; revision=41684
|
|
svn path=/trunk/; revision=41683
|
|
a wtapng_if_descr_t, so that we don't crash on a close (as is happening
in the buildbot).
Fix up some 4-space tabs.
svn path=/trunk/; revision=41575
|
|
svn path=/trunk/; revision=41561
|
|
- free IDB and ISB data when closing.
svn path=/trunk/; revision=41558
|
|
Remove a printf line in wiretap/pcapng.c
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6718
svn path=/trunk/; revision=41534
|
|
svn path=/trunk/; revision=41522
|
|
Enforce the modelines in wiretap/pcapng.c
svn path=/trunk/; revision=41506
|
|
svn path=/trunk/; revision=41495
|
|
the default.
Add support for reading nseclibpcap files to dumpcap.
svn path=/trunk/; revision=41455
|
|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6718
svn path=/trunk/; revision=41443
|
|
svn path=/trunk/; revision=41352
|
|
svn path=/trunk/; revision=41351
|
|
svn path=/trunk/; revision=41342
|
|
svn path=/trunk/; revision=41341
|
|
code of the filter used
svn path=/trunk/; revision=41339
|
|
if they're not. Also report an error for zero-length names.
Handle multiple names per IP address - the pcap-NG spec says "one or
more zero-terminated strings containing the DNS entries for that
address."
Use a Buffer to hold NRB records, so there's no maximum size (well,
there is a maximum size, because the record length is 16 bits, but let's
not allocate 64KiB on the stack if we don't have to).
svn path=/trunk/; revision=41332
|
|
svn path=/trunk/; revision=41330
|
|
WTAP_HAS_INTERFACE_ID isn't set in the presence flags.
svn path=/trunk/; revision=41327
|
|
svn path=/trunk/; revision=41292
|
|
Interface Description Blocks.
Fix a typo (if_fcslen was meant rather than opt_comment when writing the
FCS length).
svn path=/trunk/; revision=41291
|
|
no-longer-needed elements from the wtapng_packet_t structure.
svn path=/trunk/; revision=41289
|
|
pcap_read_simple_packet_block(), not in pcap_read() - the way the fields
are filled in differs between simple and non-simple packet blocks.
Clean up white space.
svn path=/trunk/; revision=41284
|
|
svn path=/trunk/; revision=41264
|
|
svn path=/trunk/; revision=41263
|
|
#Backport
svn path=/trunk/; revision=41259
|
|
svn path=/trunk/; revision=41258
|
|
by Wiretap, to indicate whether certain fields in that structure
actually have data in them.
Use the "time stamp present" flag to omit showing time stamp information
for packets (and "packets") that don't have time stamps; don't bother
working very hard to "fake" a time stamp for data files.
Use the "interface ID present" flag to omit the interface ID for packets
that don't have an interface ID.
We don't use the "captured length, separate from packet length, present"
flag to omit the captured length; that flag might be present but equal
to the packet length, and if you want to know if a packet was cut short
by a snapshot length, comparing the values would be the way to do that.
More work is needed to have wiretap/pcapng.c properly report the flags,
e.g. reporting no time stamp being present for a Simple Packet Block.
svn path=/trunk/; revision=41185
|
|
svn path=/trunk/; revision=41179
|
|
svn path=/trunk/; revision=41178
|
|
svn path=/trunk/; revision=41165
|
|
svn path=/trunk/; revision=41159
|
|
That means we don't need to do the block length check in
pcapng_read_block(); each block type reader, including the one for
unknown block types, does a check that's as stringent as that block
length check or more stringent, which means any block whose length is
less than the minimum will fail with the same error in both cases.
Fix the message for a too-short NRB.
svn path=/trunk/; revision=41152
|
|
svn path=/trunk/; revision=41145
|
|
1) contain the block length fields and block type field;
2) contain that plus the fixed-length portion of the block;
3) for blocks that have a variable-length portion other than the
options, contain that variable-length portion.
Fixes a crash we're seeing with a bad pcap-NG file in the Wireshark
menagerie (7799-lastPacketWithoutComment.pcapng - the last packet's
block length is 128, but it claims to have 98 bytes of packet data,
which requires a 132-byte block).
Clean up white space (use 8-space tabs).
svn path=/trunk/; revision=41143
|
|
svn path=/trunk/; revision=41140
|
|
- Read all options.
- Prepare to write ISB.
svn path=/trunk/; revision=41137
|
|
block, which could be the case even in a *valid* file (consider a file
with an SHB, an NRB, an IDB, and a packet block, in that order); even if
there's no IDB before the first packet block, that should be reported to
the user as "interface N not less than interface count M", to more
precisely indicate the problem.
(Yes, the loop should probably keep going until it finds a packet block,
not just a non-IDB block.)
svn path=/trunk/; revision=41132
|
|
svn path=/trunk/; revision=41126
|
|
svn path=/trunk/; revision=41119
|
|
Use (consistently) 0 as the default for the interface speed.
While there, do some whitespace cleanups.
svn path=/trunk/; revision=41118
|
|
svn path=/trunk/; revision=41112
|
|
While there, cleanup some whitespaces.
svn path=/trunk/; revision=41106
|