aboutsummaryrefslogtreecommitdiffstats
path: root/wiretap/ber.h
AgeCommit message (Collapse)AuthorFilesLines
2024-06-08Make .c files in wiretap include the corresponding .h firstNicolás Alvarez1-0/+1
Continuing what I did in wsutil, make every xxx.c file in wiretap/ include xxx.h before anything else. This ensures the xxx.h file is including everything it depends on.
2024-03-20Convert Wiretap to C99John Thacker1-1/+1
This one is complicated because a gboolean is an int, but a bool is not, in the way that a pointer to a bool (including in the return of a function pointer) cannot be substituted for a pointer to a gboolean. (They can convert a bool used internally to a gboolean on return.) Continue for that reason to have some functions return gboolean when used with glib callback functions: https://docs.gtk.org/glib/callback.HRFunc.html Another small gotcha is that macros like UINT64_C are not necessarily guaranteed to wrap the return in parentheses, which G_GUINT64_CONSTANT and the like do. In wtap.h, the file subtype "dump_open" function was typedef'd as returning an int, but almost all users (except in wslua) returned a gboolean. Switch it to a bool. Make a note about why can_write_encap does not return a bool, because it returns error codes on failure (for Lua) instead of having the err as a separate parameter. Update the usbdump wiretap plugin too. A few places outside of wiretap use wiretap function pointers, such as in the Lua interface, adding IP addresses to NRBs, merging, and the frame dissector using wiretap functions. Switch those to bool. Ping #19116
2021-11-29wiretap: Add header files to DoxygenMoshe Kaplan1-1/+1
Add @file markers for wiretap headers so that Doxygen will generate documentation for them.
2018-02-08replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later.Dario Lombardo1-1/+1
The first is deprecated, as per https://spdx.org/licenses/. Change-Id: I8e21e1d32d09b8b94b93a2dc9fbdde5ffeba6bed Reviewed-on: https://code.wireshark.org/review/25661 Petri-Dish: Anders Broman <a.broman58@gmail.com> Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-01-20wiretap: use SPDX identifiers (partial work).Dario Lombardo1-13/+1
Change-Id: I28436e003ce7fe31d53e6663f3cc7aca00845e4b Reviewed-on: https://code.wireshark.org/review/25392 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Gerald Combs <gerald@wireshark.org>
2014-10-10Fix declared types of open routines.Guy Harris1-1/+1
Change-Id: Ifa38dfec31ec5b03f00d6e077902184a9ae2ee0e Reviewed-on: https://code.wireshark.org/review/4583 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-05-09Revert "Refactor Wiretap"Guy Harris1-1/+1
This reverts commit 1abeb277f5e6bd27fbaebfecc8184e37ba9d008a. This isn't building, and looks as if it requires significant work to fix. Change-Id: I622b1bb243e353e874883a302ab419532b7601f2 Reviewed-on: https://code.wireshark.org/review/1568 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-05-09Refactor WiretapMichael Mann1-1/+1
Start of refactoring Wiretap and breaking structures down into "generally useful fields for dissection" and "capture specific". Since this in intended as a "base" for Wiretap and Filetap, the "wft" prefix is used for "common" functionality. The "architectural" changes can be found in cfile.h, wtap.h, wtap-int.h and (new file) wftap-int.h. Most of the other (painstaking) changes were really just the result of compiling those new architecture changes. bug:9607 Change-Id: Ife858a61760d7a8a03be073546c0e7e582cab2ae Reviewed-on: https://code.wireshark.org/review/1485 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-03-01Export libwireshark symbols using WS_DLL_PUBLIC defineBalint Reczey1-1/+0
Also remove old WS_VAR_IMPORT define and related Makefile magic everywhere in the project. svn path=/trunk/; revision=47992
2013-02-28Export libwiretap symbols using WS_DLL_PUBLIC defineBalint Reczey1-0/+2
TODO: hide flex-generated functions svn path=/trunk/; revision=47948
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-06-04Fix wiretap headers to allow error-free ABI dumping.Balint Reczey1-0/+1
svn path=/trunk/; revision=37543
2006-05-08Basic Encoding Rules (BER) encoded file reading. Not really a packet trace ↵Graeme Lunt1-0/+28
format but still useful for dissecting arbitrary BER/DER ASN.1. svn path=/trunk/; revision=18110