| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
Declare ws_stdio_stat64, as that's its new name.
svn path=/trunk/; revision=36549
|
|
|
|
|
|
|
| |
as an argument, along the lines of ws_fstat64, and, on Windows, make it
use _wstati64, to handle 64-bit file sizes.
svn path=/trunk/; revision=36547
|
|
|
|
|
|
| |
64-bit-file-size-capable stat call, and use it for ws_fstat64().
svn path=/trunk/; revision=36545
|
|
|
|
|
|
| |
Use it in some places where we're getting the file size.
svn path=/trunk/; revision=36544
|
|
|
|
|
|
|
|
|
|
|
| |
support it.
Rename ws_lseek to ws_lseek64, as it should be given a 64-bit offset,
and have it use _lseeki64 on Windows, to try to get 64-bit offset
support; AC_SYS_LARGEFILE should cause lseek() to support 64-bit offsets
on UN*X if possible.
svn path=/trunk/; revision=36542
|
|
|
|
|
|
|
| |
Point to pages for some other compressed file formats we might want to
support.
svn path=/trunk/; revision=36539
|
|
|
|
|
|
|
| |
wiretap/file_wrappers.c; nothing outside of file_wrappers.c needs to
know what it looks like, it just passes around pointers to it.
svn path=/trunk/; revision=36538
|
|
|
|
|
|
|
|
|
| |
calls that use it, cast it to whatever it's supposed to be. Making it a
gzFile means you can't use any stdio macros that reach inside the
structure; making it a FILE *, as it used to be, amounts to trying to
use a FILE * as a void * if we're writing a compressed file out.
svn path=/trunk/; revision=36521
|
|
|
|
| |
svn path=/trunk/; revision=36517
|
|
|
|
|
|
|
|
|
|
| |
unsigned int - to match file_read(). Shrink some arguments, variables,
and structure members appropriately.
Fix an incorrect sizeof - sizeof a pointer is the size of the pointer,
not the size of what it points to.
svn path=/trunk/; revision=36515
|
|
|
|
|
|
|
|
|
| |
ws_lseek() to the appropriate type for the second argument to _lseek()
for Windows or lseek() for UN*X; ultimately, we want to call the
appropriate 64-bit-offset seek routine if available, otherwise cast the
value down and hand it to the 32-bit-offset seek routine.
svn path=/trunk/; revision=36514
|
|
|
|
|
|
| |
Steal file_wrappers functions from zlib v2.
svn path=/trunk/; revision=36513
|
|
|
|
|
|
| |
help squelch Coverity CIDs 701-709.
svn path=/trunk/; revision=36511
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Introduce file_clearerr
I'm unsure of this patch,
gzclearerr() is used to clear the end-of-file mark, but for FILE
there's function which do the same (clearerr).
I created test program if clearerr() is needed for tailing file.
and it seems to work without it (at least on Linux, so for
!HAVE_LIBZ I commented it out).
For now this patch introduce file_clearerr macro, and define it
only when EOF marking must be cleared (i.e. when HAVE_LIBZ and
HAVE_GZCLEARERR are defined).
So everything works like before, patch just to keep same prefix
for file interface :)
svn path=/trunk/; revision=36510
|
|
|
|
|
|
|
|
|
| |
file-wrappers.[ch] is used only for reading files, and mode is always
"rb".
Attached patch removes 'mode' argument from file_open() & filed_open().
svn path=/trunk/; revision=36493
|
|
|
|
| |
svn path=/trunk/; revision=36492
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
file_read(buf, bsize, count, file) macro is compilant with fread
function and takes elements count+ size of each element, however to make
it compilant with gzread() it always returns number of bytes.
In wiretap file_read() this is not really used, file_read is called
either with bsize set to 1 or count to 1.
Attached patch remove bsize argument from macro.
svn path=/trunk/; revision=36491
|
|
|
|
| |
svn path=/trunk/; revision=36425
|
|
|
|
| |
svn path=/trunk/; revision=36422
|
|
|
|
|
|
|
|
|
|
|
| |
Coverity 789-790.
Since we've been keeping track of how many bytes we put in the buffer,
use that value instead of calling strlen() find it again.
Also, some white space/indentation cleanup.
svn path=/trunk/; revision=36397
|
|
|
|
|
|
|
|
| |
Coverity 791-794.
Also, some white space/indentation cleanup.
svn path=/trunk/; revision=36394
|
|
|
|
| |
svn path=/trunk/; revision=36384
|
|
|
|
| |
svn path=/trunk/; revision=36376
|
|
|
|
|
|
| |
Coverity 492.
svn path=/trunk/; revision=36356
|
|
|
|
| |
svn path=/trunk/; revision=36340
|
|
|
|
|
|
| |
(pcapng.c(1817) : warning C4267: '=' : conversion from 'size_t' to 'gint', possible loss of data)
svn path=/trunk/; revision=36325
|
|
|
|
| |
svn path=/trunk/; revision=36321
|
|
|
|
|
|
|
|
|
|
| |
support; TShark has read+write support. Additionally TShark can read a
"hosts" file and write those records to a capture file.
This uses "struct addrinfo" in many places and probably won't compile on
some platforms.
svn path=/trunk/; revision=36318
|
|
|
|
|
|
|
|
| |
netscreen_read(), checking the return value of
parse_netscreen_hex_dump() against -1 and explicitly returning FALSE if
it's -1, otherwise driving on.
svn path=/trunk/; revision=36237
|
|
|
|
|
|
| |
hex data is present (snoop detail off).
svn path=/trunk/; revision=36232
|
|
|
|
| |
svn path=/trunk/; revision=36202
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5654
From me:
- Entry for DVBCI added to wtap.c encap_table_base[];
- Some code simplification with respect to the use of col_...() for COL_INFO;
- Certain tests for "enough bytes available" not really needed;
- (Other minor tweaks);
- #include<stdio.h> not req'd;
- Minor reformatting and whitespace cleanup;
svn path=/trunk/; revision=36149
|
|
|
|
|
|
|
|
| |
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5666
Fro me: use 4 -space indentation (not tab) to match surrounding code lines.
svn path=/trunk/; revision=36074
|
|
|
|
|
|
|
|
|
|
|
| |
LANalyzer files"
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5698
(Note from me: Before the fix "File ! Save As" in Lanalyzer format
crashed quite consistently on my Windows 7)
svn path=/trunk/; revision=36061
|
|
|
|
| |
svn path=/trunk/; revision=36060
|
|
|
|
|
|
|
|
|
| |
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5698
Note: before fix
File ! SaveAs in Lanalyzer format crashed quite consistently on Windows.
svn path=/trunk/; revision=36059
|
|
|
|
|
|
|
| |
either the VC++ analyzer can't determine that or it *can*, in fact,
happen). Pick an error code that's not too far off.
svn path=/trunk/; revision=35957
|
|
|
|
| |
svn path=/trunk/; revision=35956
|
|
|
|
| |
svn path=/trunk/; revision=35955
|
|
|
|
| |
svn path=/trunk/; revision=35954
|
|
|
|
| |
svn path=/trunk/; revision=35953
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
pseudo-header, and hence there's no direction indication. Don't set
pinfo->p2p_dir for it. Use WTAP_ENCAP_BLUETOOTH_H4_WITH_PHDR, not
WTAP_ENCAP_BLUETOOTH_H4, for capture files where we have the direction.
Don't assume pinfo->p2p_dir is either P2P_DIR_SENT or P2P_DIR_RECV when
setting the info column in various Bluetooth dissectors; it might be
unknown.
In the HCI H4 dissector, put the direction into the info column
regardless of whether we have a type match or not; the dissectors for
HCI packet types appear to assume it's been set (as they put a blank at
the beginning of the stuff they append to the direction).
svn path=/trunk/; revision=35933
|
|
|
|
|
|
|
| |
an email I found when looking for some other stuff and which I then
found with a Google search.
svn path=/trunk/; revision=35898
|
|
|
|
|
|
|
|
| |
Sidhpurwala of the Red Hat Security Response Team.
See also: bug 5661.
svn path=/trunk/; revision=35855
|
|
|
|
| |
svn path=/trunk/; revision=35809
|
|
|
|
| |
svn path=/trunk/; revision=35807
|
|
|
|
| |
svn path=/trunk/; revision=35806
|
|
|
|
| |
svn path=/trunk/; revision=35805
|
|
|
|
| |
svn path=/trunk/; revision=35804
|
|
|
|
|
|
|
|
|
| |
Get rid of debugging printouts that are equivalent to the "additional
error information" messages.
Return additional error info for all WTAP_ERR_BAD_RECORD errors.
svn path=/trunk/; revision=35800
|