Age | Commit message (Collapse) | Author | Files | Lines |
|
With gcc :
pcapng.c: In function 'pcapng_read_packet_block':
pcapng.c:1147:9: error: request for member 'pseudo_header' in something not a structure or union
With clang :
pcapng.c:1150:86: error: member reference type 'struct wtap_pkthdr *' is a pointer; maybe you meant to use '->'?
pcap_get_phdr_size(int_data.wtap_encap, &wblock->packet_header.pseudo_header));
~~~~~~~~~~~~~~~~~~~~~^
->
(Error message from clang is better...)
svn path=/trunk/; revision=51317
|
|
and assign float constants, not double constants, to float variables.
Floating-point constants are double by default; you have to add "f" to
the end to make them float.
This squelches 64-bit-to-32-bit warnings.
svn path=/trunk/; revision=51289
|
|
wiretap/lanalyzer.c:643:24: error: implicit conversion loses integer precision: 'const __suseconds_t'
(aka 'const long') to 'gint32' (aka 'int') [-Werror,-Wshorten-64-to-32]
gint32 usec = a->tv_usec;
~~~~ ~~~^~~~~~~
svn path=/trunk/; revision=51249
|
|
This was the 4th patch, but also:
- use gmalloc0() to allocate vwr struct. Otherwise, valgrind says that
many of fields were still uninitialised when parse_s1_W_stats later
read them
- whitespace tidyup, got rid of remaining tabs and trailing whitespace
Did a fair bit of fuzz-testing without seeing any problems.
svn path=/trunk/; revision=51248
|
|
doing.
svn path=/trunk/; revision=51209
|
|
svn path=/trunk/; revision=51203
|
|
comments about LINKTYPE_ values vs. DLT_ values.
svn path=/trunk/; revision=51202
|
|
wrong checking message - wrong source tree...).
svn path=/trunk/; revision=51051
|
|
------------------------------------------------------------------------
r51049 | guy | 2013-07-30 22:00:28 -0700 (Tue, 30 Jul 2013) | 5 lines
If no target OS version was specified, default to the major version on
which we're running, so we *always* build against an SDK. (The "10" in
"10.x.y" is not *really* part of the version number, so the "major
version" includes the "10" and the major version number following it.)
svn path=/trunk/; revision=51050
|
|
[-Werror=c++-compat]
svn path=/trunk/; revision=51004
|
|
svn path=/trunk/; revision=51003
|
|
svn path=/trunk/; revision=51002
|
|
svn path=/trunk/; revision=51001
|
|
mktime(). That eliminates the need for casts.
It should *also* be part of a per-wtap-structure private data structure,
not a global variable; make it so.
svn path=/trunk/; revision=51000
|
|
Fix some typoes in comments.
svn path=/trunk/; revision=50999
|
|
svn path=/trunk/; revision=50997
|
|
Enhancement: Add STANAG 4607 file format
svn path=/trunk/; revision=50996
|
|
argument to the -F flag for pcap format is "libpcap", not "pcap", we
have a problem. Make it "pcap", and add a backwards-compatibility hack
to support using "libpcap" as well.
Update the man pages to refer to it as pcap as well, and fix the
capitalization of "WinPcap" (see http://www.winpcap.org) while we're at
it.
Also, refer to http://www.tcpdump.org/linktypes.html for the list of
link-layer header types for pcap and pcap-ng.
svn path=/trunk/; revision=50989
|
|
svn path=/trunk/; revision=50854
|
|
svn path=/trunk/; revision=50853
|
|
be read in chunks > 2GB.
svn path=/trunk/; revision=50847
|
|
Move wiretap/file_wrapper.c back to clean sources.
svn path=/trunk/; revision=50825
|
|
when compiled with clang.
Just for documentation:
[ 6%] Building C object wiretap/CMakeFiles/wiretap.dir/file_wrappers.c.o
/home/jmayer/work/wireshark/svn/trunk/wiretap/file_wrappers.c:987:28: warning: implicit
conversion loses integer precision: 'gint64' (aka 'long long') to '__off_t'
(aka 'long') [-Wshorten-64-to-32]
if (ws_lseek64(file->fd, off, SEEK_SET) == -1) {
~~~~~~~~~~ ^~~
/home/jmayer/work/wireshark/svn/trunk/wiretap/file_wrappers.c:1051:35: warning:
implicit conversion loses integer precision: 'long long' to '__off_t' (aka 'long')
[-Wshorten-64-to-32]
if (ws_lseek64(file->fd, offset - file->have, SEEK_CUR) == -1) {
~~~~~~~~~~ ~~~~~~~^~~~~~~~~~~~
/home/jmayer/work/wireshark/svn/trunk/wiretap/file_wrappers.c:1076:34: warning:
implicit conversion loses integer precision: 'gint64' (aka 'long long') to
'__off_t' (aka 'long') [-Wshorten-64-to-32]
if (ws_lseek64(file->fd, file->start, SEEK_SET) == -1) {
~~~~~~~~~~ ~~~~~~^~~~~
3 warnings generated.
svn path=/trunk/; revision=50798
|
|
compressed sniffer files failed if the very first read involves seeking
past the first blob; fix that.
svn path=/trunk/; revision=50679
|
|
svn path=/trunk/; revision=50671
|
|
svn path=/trunk/; revision=50662
|
|
svn path=/trunk/; revision=50656
|
|
size is based on the snapshot length.
svn path=/trunk/; revision=50647
|
|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8937
Don't warn if a file has packets larger than the global snapshot length.
svn path=/trunk/; revision=50646
|
|
same time sometimes results in corrupted output).
svn path=/trunk/; revision=50524
|
|
svn path=/trunk/; revision=50212
|
|
to) warnings.
svn path=/trunk/; revision=50104
|
|
page, which doesn't look like an "unused space" record because there
aren't two bytes of record type, just one byte).
svn path=/trunk/; revision=50027
|
|
between the routine name and the opening parenthesis, so remove it from
the definition of the seek-read routine.
svn path=/trunk/; revision=50026
|
|
split across page boundaries, rather than being a byte stream, and that
the last page may be short.
Fix some comments.
svn path=/trunk/; revision=50025
|
|
out there (especially over USB) and we should be able to load them as long as
they are snapped to a sane length.
Also validate that packets do not specify a snapshot length larger than the one
in the file header, though only make it a warning, as this is not necessarily a
fatally corrupt packet.
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8808
svn path=/trunk/; revision=49999
|
|
data into a common routine, and use it in both the read and seek-read
routines.
svn path=/trunk/; revision=49996
|
|
svn path=/trunk/; revision=49990
|
|
routine, used both by read and seek-read routines.
svn path=/trunk/; revision=49988
|
|
code to handle the API changes for the seek-read routines.
svn path=/trunk/; revision=49950
|
|
as the "where to put the packet data" argument.
This lets more of the libwiretap code be common between the read and
seek-read code paths, and also allows for more flexibility in the "fill
in the data" path - we can expand the buffer as needed in both cases.
svn path=/trunk/; revision=49949
|
|
parse_netscreen_hex_dump().
svn path=/trunk/; revision=49944
|
|
seek-read routines.
svn path=/trunk/; revision=49943
|
|
move the code to file in a struct wtap_pkthdr there.
svn path=/trunk/; revision=49942
|
|
svn path=/trunk/; revision=49870
|
|
requests to add an entry with a zero-length name; we don't have to
ignore them ourselves.
svn path=/trunk/; revision=49854
|
|
them.
Works around the problem reported in bug 8763.
svn path=/trunk/; revision=49851
|
|
memory" indication if it fails.
Further fixes bug 8752.
Also, clean up indentation.
svn path=/trunk/; revision=49834
|
|
artificial 16MB limit on blocks.
Do some sanity checks when reading options, to make sure we don't read
past the end of the block.
Make some variables unsigned so as not to get inappropriate
sign-extension (which, in practice, should never happen due to the 16MB
block size limit, although if the limit is raised above 2^31-1, the
limit won't protect you).
Fixes bug 8752.
svn path=/trunk/; revision=49833
|
|
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8777 :
Add support for 10Gbe HP-UX drivers IOCXGBE and IQXGBE
svn path=/trunk/; revision=49820
|