language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
C
wireshark/wiretap/peektagged.c
/* peektagged.c * Routines for opening files in what Savvius (formerly WildPackets) calls * the tagged file format in the description of their "PeekRdr Sample * Application" (C++ source code to read their capture files, downloading * of which requires a maintenance contract, so it's not free as in beer * and proba...
C/C++
wireshark/wiretap/peektagged.h
/** @file * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __W_PEEKTAGGED_H__ #define __W_PEEKTAGGED_H__ #include <glib.h> #include "ws_symbol_export.h" wtap_open_return_val peektagged_open(wtap *wth, int *err, gchar **er...
C
wireshark/wiretap/pppdump.c
/* pppdump.c * * Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "wtap-int.h" #include "pppdump.h" #include "file_wrappers.h" #include <stdlib.h> #include <errno.h> #include <string.h> #include <wsutil/ws_assert.h> /* pp...
C/C++
wireshark/wiretap/pppdump.h
/** @file * * Copyright (c) 2000 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later * */ #ifndef __PPPDUMP_H__ #define __PPPDUMP_H__ #include <glib.h> #include "wtap.h" #include "ws_symbol_export.h" wtap_open_return_val pppdump_open(wtap *wth, int *err, gchar **err_info); ...
C
wireshark/wiretap/radcom.c
/* radcom.c * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <string.h> #include "wtap-int.h" #include "file_wrappers.h" #include "radcom.h" struct frame_date { guint16 year; guint8 month; guint8 ...
C/C++
wireshark/wiretap/radcom.h
/** @file * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later * */ #ifndef __RADCOM_H__ #define __RADCOM_H__ #include <glib.h> #include "wtap.h" #include "ws_symbol_export.h" wtap_open_return_val radcom_open(wtap *wth, int *err, gcha...
wireshark/wiretap/README
NOTE: this documents the original intent behind libwiretap. Currently, it is being developed solely as a library for reading capture files, rather than packet capture. The list of file formats is also out-of-date. Wiretap is a library that is being developed as a future replacement for libpcap, the current standard ...
wireshark/wiretap/README.airmagnet
AMC: Wireless Analyzer Captured Data (AirMagnet) ------------------------------------------------ This is just a braindump from looking at some Airmagnet capture files, in one case having a look at a decoded display in Airmagnet itself. Lots of things are still unknown. This is NOT the intention to write a file importe...
wireshark/wiretap/README.developer
This is a very quick and very dirty guide to adding support for new capture file formats. If you see any errors or have any improvements, submit patches - free software is a community effort.... To add the ability to read a new capture file format, you have to: write an "open" routine that can read the beginning of...
C/C++
wireshark/wiretap/required_file_handlers.h
/** @file * * Functions and variables defined by required file handlers (pcap, * nanosecond pcap, pcapng). * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __REQUIRED_FILE_HANDLERS_H__ #def...
C
wireshark/wiretap/rfc7468.c
/* rfc7468.c * * Implements loading of files in the format specified by RFC 7468. * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "rfc7468.h" #include "file_wrappers.h" #include "wtap-int.h" #include <wsutil/buffer.h> #include <glib.h> #include <string.h> static int rfc7468_fil...
C/C++
wireshark/wiretap/rfc7468.h
/** @file * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __PEM_H__ #define __PEM_H__ #include <glib.h> #include "wtap.h" wtap_open_return_val rfc7468_open(wtap *wth, int *err, gchar **err_info); #endif /* * Editor modelines - https://www.wireshark.org/tools/modelines.html * * Local Variables: * c-ba...
C
wireshark/wiretap/rtpdump.c
/* rtpdump.c * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * Support for RTPDump file format * Copyright (c) 2023 by David Perry <boolean263@protonmail.com> * * SPDX-License-Identifier: GPL-2.0-or-later */ /* The rtpdump file format is the "dump" format as generated by rt...
C/C++
wireshark/wiretap/rtpdump.h
/** @file * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * Support for RTPDump file format * Copyright (c) 2023 by David Perry <boolean263@protonmail.com * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef RTPDUMP_H__ #define RTPDUMP_H__ #include <wiretap/wtap.h> w...
C
wireshark/wiretap/ruby_marshal.c
/* ruby_marshal.c * * Routines for reading a binary file containing a ruby marshal object * * Copyright 2018, Dario Lombardo <lomato@gmail.com> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <string.h> #include "wtap-int.h" #include "file_wrappers.h" #include "ruby_marshal.h" ...
C/C++
wireshark/wiretap/ruby_marshal.h
/** @file * * Copyright 2018, Dario Lombardo <lomato@gmail.com> * * SPDX-License-Identifier: GPL-2.0-or-later * */ #ifndef __RUBY_MARSHAL_H__ #define __RUBY_MARSHAL_H__ #include <glib.h> #include "wtap.h" // Current Ruby Marshal library version #define RUBY_MARSHAL_MAJOR 4 #define RUBY_MARSHAL_MINOR 8 wtap_o...
C/C++
wireshark/wiretap/secrets-types.h
/** @file * * Identifiers used by Decryption Secrets Blocks (DSB). * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __SECRETS_TYPES_H__ #define __SECRETS_TYPES_H__ /* * Type describing the...
C
wireshark/wiretap/snoop.c
/* snoop.c * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <string.h> #include "wtap-int.h" #include "file_wrappers.h" #include "atm.h" #include "snoop.h" #include <wsutil/802_11-utils.h> #include <ws...
C/C++
wireshark/wiretap/snoop.h
/** @file * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __W_SNOOP_H__ #define __W_SNOOP_H__ #include <glib.h> #include "wtap.h" #include "ws_symbol_export.h" wtap_open_return_val snoop_open(wtap *wth, int *err, gchar ...
C/C++
wireshark/wiretap/socketcan.h
/** @file * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * Support for Busmaster log file format * Copyright (c) 2019 by Maksim Salau <maksim.salau@gmail.com> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef SOCKETCAN_H__ #define SOCKETCAN_H__ #include <gmodule.h...
C
wireshark/wiretap/stanag4607.c
/* stanag4607.c * * STANAG 4607 file reading * * http://www.nato.int/structur/AC/224/standard/4607/4607e_JAS_ED3.pdf * That is now missing from that site, but is available on the Wayback * Machine: * * https://web.archive.org/web/20130223054955/http://www.nato.int/structur/AC/224/standard/4607/4607.htm * * ht...
C/C++
wireshark/wiretap/stanag4607.h
/** @file * * STANAG 4607 file reading * * SPDX-License-Identifier: GPL-2.0-or-later * */ #ifndef __STANAG_4607_H__ #define __STANAG_4607_H__ #include <glib.h> #include <wiretap/wtap.h> #include "ws_symbol_export.h" wtap_open_return_val stanag4607_open(wtap *wth, int *err, gchar **err_info); #endif
C
wireshark/wiretap/systemd_journal.c
/* systemd_journal.c * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <errno.h> #include <string.h> #include <stdlib.h> #include "wtap-int.h" #include "pcapng_module.h" #include "file_wrappers.h" #inc...
C/C++
wireshark/wiretap/systemd_journal.h
/** @file * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later * */ #ifndef __SYSTEMD_JOURNAL_H__ #define __SYSTEMD_JOURNAL_H__ #include <glib.h> #include "wtap.h" #include "ws_symbol_export.h" wtap_open_return_val systemd_journal_ope...
C
wireshark/wiretap/tnef.c
/* tnef.c * * Transport-Neutral Encapsulation Format (TNEF) file reading * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "wtap-int.h" #include "file_wrappers.h" #include <wsutil/buffer.h> #include "tnef.h" static int tnef_file_type_subtype = -1; void register_tnef(void); wtap_ope...
C/C++
wireshark/wiretap/tnef.h
/** @file * * Transport-Neutral Encapsulation Format (TNEF) file reading * * SPDX-License-Identifier: GPL-2.0-or-later * */ #ifndef __TNEF_H__ #define __TNEF_H__ #include <glib.h> #include <wiretap/wtap.h> #include "ws_symbol_export.h" #define TNEF_SIGNATURE 0x223E9F78 wtap_open_return_val tnef_open(wtap *wth...
C/C++
wireshark/wiretap/toshiba.h
/** @file * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __W_TOSHIBA_H__ #define __W_TOSHIBA_H__ #include <glib.h> #include "wtap.h" #include "ws_symbol_export.h" wtap_open_return_val toshiba_open(wtap *wth, int *err, ...
C
wireshark/wiretap/visual.c
/* visual.c * File read and write routines for Visual Networks cap files. * Copyright (c) 2001, Tom Nisbet tnisbet@visualnetworks.com * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <string.h> #inc...
C/C++
wireshark/wiretap/visual.h
/** @file * * File read write routines for Visual Networks .cap files. * Copyright 2001, Tom Nisbet tnisbet@visualnetworks.com * * Based on the code that handles netmon files. * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ ...
C
wireshark/wiretap/vms.c
/* vms.c * * Wiretap Library * Copyright (c) 2001 by Marc Milgram <ethereal@mmilgram.NOSPAMmail.net> * * SPDX-License-Identifier: GPL-2.0-or-later */ /* Notes: * TCPIPtrace TCP fragments don't have the header line. So, we are never * to look for that line for the first line of a packet except the first *...
C/C++
wireshark/wiretap/vms.h
/** @file * * Wiretap Library * Copyright (c) 2001 by Marc Milgram <ethereal@mmilgram.NOSPAMmail.net> * * SPDX-License-Identifier: GPL-2.0-or-later * */ #ifndef __W_VMS_H__ #define __W_VMS_H__ #include <glib.h> #include "wtap.h" #include "ws_symbol_export.h" wtap_open_return_val vms_open(wtap *wth, int *err, ...
C
wireshark/wiretap/vwr.c
/* vwr.c * Copyright (c) 2011 by Tom Alexander <talexander@ixiacom.com> * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later * */ #include "config.h" #include <string.h> #include "wtap-int.h" #include "file_wrappers.h" #include "vwr....
C/C++
wireshark/wiretap/vwr.h
/** @file * * Wiretap Library * Copyright (c) 1998-2010 by Tom Alexander <talexander@ixiacom.com> * * SPDX-License-Identifier: GPL-2.0-or-later * */ #ifndef __VWR_H__ #define __VWR_H__ #include "ws_symbol_export.h" wtap_open_return_val vwr_open(wtap *wth, int *err, gchar **err_info); #endif
C/C++
wireshark/wiretap/wtap-int.h
/** @file * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __WTAP_INT_H__ #define __WTAP_INT_H__ #include "wtap.h" #include <time.h> #ifdef _WIN32 #include <winsock2.h> #endif #include <wsutil/file_util.h> #include "wt...
C
wireshark/wiretap/wtap.c
/* wtap.c * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include <config.h> #include <string.h> #include <sys/types.h> #include "wtap-int.h" #include "wtap_opttypes.h" #include "file_wrappers.h" #include <wsutil/file_util.h...
C/C++
wireshark/wiretap/wtap.h
/** @file * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __WTAP_H__ #define __WTAP_H__ #include <wireshark.h> #include <time.h> #include <wsutil/buffer.h> #include <wsutil/nstime.h> #include <wsutil/inet_addr.h> #includ...
C/C++
wireshark/wiretap/wtap_modules.h
/** @file * * Definitions for wiretap module registration * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __WTAP_MODULES_H__ #define __WTAP_MODULES_H__ #include <glib.h> #ifdef __cplusplu...
C
wireshark/wiretap/wtap_opttypes.c
/* wtap_opttypes.c * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2001 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <glib.h> #include <string.h> #include "wtap.h" #include "wtap_opttypes.h" #include "wtap-int.h" #inclu...
C/C++
wireshark/wiretap/wtap_opttypes.h
/** @file * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2001 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef WTAP_OPT_TYPES_H #define WTAP_OPT_TYPES_H #include "ws_symbol_export.h" #include <wsutil/inet_ipv4.h> #include <wsutil/inet_ipv6.h>...
wireshark/writecap/.editorconfig
# # Editor configuration # # https://editorconfig.org/ # [capture-pcap-util-unix.[ch]] indent_style = tab indent_size = tab [capture-pcap-util.[ch]] indent_style = tab indent_size = tab [capture-wpcap.[ch]] indent_style = tab indent_size = tab [ws80211_utils.[ch]] indent_style = tab indent_size = tab
Text
wireshark/writecap/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # set(WRITECAP_SRC pcapio.c ) set_source_files_properties( ${WRITECAP_SRC} PROPERTIES COMPILE_FLAGS "${WERROR_COMMON_FLAGS}" ) add_librar...
C
wireshark/writecap/pcapio.c
/* pcapio.c * Our own private code for writing libpcap files when capturing. * * We have these because we want a way to open a stream for output given * only a file descriptor. libpcap 0.9[.x] has "pcap_dump_fopen()", which * provides that, but * * 1) earlier versions of libpcap doesn't have it * * and ...
C/C++
wireshark/writecap/pcapio.h
/** @file * * Declarations of our own routines for writing pcap and pcapng files. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * Derived from code in the Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPD...
wireshark/wsutil/.editorconfig
# # Editor configuration # # https://editorconfig.org/ # [adler32.[ch]] indent_size = 2 [aes.[ch]] indent_style = tab indent_size = tab [dot11decrypt_wep.[ch]] indent_style = tab indent_size = tab [base64.[ch]] indent_style = tab indent_size = tab [bitswap.[ch]] indent_size = 2 [buffer.[ch]] indent_style = tab in...
C
wireshark/wsutil/802_11-utils.c
/* 802_11-utils.c * 802.11 utility definitions * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2007 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "802_11-utils.h" typedef struct freq_cvt_s { unsigned fmin; /...
C/C++
wireshark/wsutil/802_11-utils.h
/* 802_11-utils.h * 802.11 utility definitions * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2007 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __802_11_UTILS_H__ #define __802_11_UTILS_H__ #include <wireshark.h> #ifdef __cplusplus exter...
C
wireshark/wsutil/adler32.c
/* adler32.c * Compute the Adler32 checksum (RFC 1950) * 2003 Tomas Kukosa * Based on code from RFC 1950 (Chapter 9. Appendix: Sample code) * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include...
C/C++
wireshark/wsutil/adler32.h
/** @file * Compute the Adler32 checksum (RFC 1950) * 2003 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef ADLER32_H #define ADLER32_H #include <wireshark.h> #ifdef __cpluspl...
C
wireshark/wsutil/base32.c
/* base32.c * Base-32 conversion * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "base32.h" #include <string.h> /* * Cjdns style base32 encoding */ /** Returned by ...
C/C++
wireshark/wsutil/base32.h
/** @file * Base-32 conversion * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __BASE32_H__ #define __BASE32_H__ #include <wireshark.h> #ifdef __cplusplus extern "C" { #endif /* __cplusplus...
C
wireshark/wsutil/bitswap.c
/* bitswap.c * Table of bit-swapped values of bytes * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "bitswap.h" /* "swaptab[i]" is the value of "i" with the bits rev...
C/C++
wireshark/wsutil/bitswap.h
/** @file * Macro to bitswap a byte by looking it up in a table * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __BITSWAP_H__ #define __BITSWAP_H__ #include <wireshark.h> #ifdef __cplusplu...
C/C++
wireshark/wsutil/bits_count_ones.h
/** @file * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __WSUTIL_BITS_COUNT_ONES_H__ #define __WSUTIL_BITS_COUNT_ONES_H__ #include <glib.h> /* * The variable-precision SWAR algorithm is ...
C/C++
wireshark/wsutil/bits_ctz.h
/** @file * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __WSUTIL_BITS_CTZ_H__ #define __WSUTIL_BITS_CTZ_H__ #include <glib.h> /* ws_ctz == trailing zeros == position of lowest set bit [0....
C
wireshark/wsutil/buffer.c
/* buffer.c * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #define WS_LOG_DOMAIN LOG_DOMAIN_WSUTIL #include "buffer.h" #include <stdlib.h> #include <string.h> #include <wsutil/ws_assert.h> #include <wsutil/w...
C/C++
wireshark/wsutil/buffer.h
/** @file * * Wiretap Library * Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __W_BUFFER_H__ #define __W_BUFFER_H__ #include <glib.h> #include "ws_symbol_export.h" #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #define SOME_FUNC...
C
wireshark/wsutil/cfutils.c
/* cfutils.c * Routines to work around deficiencies in Core Foundation, such as the * lack of a routine to convert a CFString to a C string of arbitrary * size. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2001 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-o...
C/C++
wireshark/wsutil/cfutils.h
/** @file * Declarations of routines to work around deficiencies in Core Foundation, * such as the lack of a routine to convert a CFString to a C string of * arbitrary size. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2001 Gerald Combs * * SPDX-License-Identifi...
C
wireshark/wsutil/clopts_common.c
/* clopts_common.c * Handle command-line arguments common to various programs * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "clopts_common.h" #include <stdlib.h> #in...
C/C++
wireshark/wsutil/clopts_common.h
/** @file * * Handle command-line arguments common to various programs * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CLOPTS_COMMON_H__ #define __CLOPTS_COMMON_H__ #include <wireshark.h...
Text
wireshark/wsutil/CMakeLists.txt
# CMakeLists.txt # # Wireshark - Network traffic analyzer # By Gerald Combs <gerald@wireshark.org> # Copyright 1998 Gerald Combs # # SPDX-License-Identifier: GPL-2.0-or-later # file(TO_NATIVE_PATH "${CMAKE_INSTALL_PREFIX}" PATH_INSTALL_PREFIX) string(REPLACE "\\" "\\\\" PATH_INSTALL_PREFIX "${PATH_INSTALL_PREFIX}") fi...
C
wireshark/wsutil/cmdarg_err.c
/* cmdarg_err.c * Routines to report command-line argument errors. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "cmdarg_err.h" static void (*print_err)(const char *...
C/C++
wireshark/wsutil/cmdarg_err.h
/** @file * * Declarations of routines to report command-line argument errors. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CMDARG_ERR_H__ #define __CMDARG_ERR_H__ #include <wireshark...
C
wireshark/wsutil/codecs.c
/* codecs.c * codecs interface 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "codecs.h" #include <wsutil/wslog.h> #ifdef HAVE_PLUGINS #include <w...
C/C++
wireshark/wsutil/codecs.h
/** @file * codecs interface 2007 Tomas Kukosa * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef _CODECS_H_ #define _CODECS_H_ #include "ws_symbol_export.h" #include "ws_attributes.h" #inc...
C/C++
wireshark/wsutil/color.h
/** @file * * Definitions for colors * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __COLOR_H__ #define __COLOR_H__ #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /* * Data s...
C
wireshark/wsutil/console_win32.c
/* console_win32.c * Console support for MSWindows * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2002, Jeffrey C. Foster <jfoste@woodward.com> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifdef _WIN32 #include <string.h> #include <stdio.h> #include <stdlib....
C/C++
wireshark/wsutil/console_win32.h
/** @file * * Console support for MSWindows * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2002, Jeffrey C. Foster <jfoste@woodward.com> * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CONSOLE_WIN32_H__ #define __CONSOLE_WIN32_H__ #include <wireshark....
C
wireshark/wsutil/cpu_info.c
/* cpu_info.c * Routines to report CPU information * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <wsutil/cpu_info.h> #include <string.h> #include <wsutil/ws_cpuid.h>...
C/C++
wireshark/wsutil/cpu_info.h
/** @file * Declarations of routines to report CPU information * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __WSUTIL_CPU_INFO_H__ #define __WSUTIL_CPU_INFO_H__ #include <wireshark.h> #i...
C
wireshark/wsutil/crash_info.c
/* crash_info.c * Routines to try to provide more useful information in crash dumps. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2006 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "crash_info.h" #ifdef __APPLE__ /*...
C/C++
wireshark/wsutil/crash_info.h
/** @file * Routines to try to provide more useful information in crash dumps. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2006 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CRASH_INFO_H__ #define __CRASH_INFO_H__ #include <wireshark....
C
wireshark/wsutil/crc10.c
/* * crc10.c * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "crc10.h" /* * Charles Michael Heard's CRC-10 code, from * * http://web.archive.org/web/20061005231950...
C/C++
wireshark/wsutil/crc10.h
/** @file * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CRC10_H__ #define __CRC10_H__ #include <wireshark.h> /* Update the data block's CRC-10 remainder one byte at a time */ WS_DLL_PUB...
C
wireshark/wsutil/crc11.c
/* * crc11.c * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include <wsutil/crc11.h> /** * Functions and types for CRC checks. * * Generated on Tue Aug 7 15:45:57 2012, * by pycrc v0.7.10, htt...
C/C++
wireshark/wsutil/crc11.h
/** @file * http://www.tty1.net/pycrc/faq_en.html#code-ownership * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CRC11_____H__ #include <stdint.h> #include "ws_symbol_export.h" #ifdef _...
C
wireshark/wsutil/crc16-plain.c
/* * crc16-plain.c * http://www.tty1.net/pycrc/faq_en.html#code-ownership * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ /** * \file crc16-plain.c * Functions and types for CRC checks. * * Gen...
C/C++
wireshark/wsutil/crc16-plain.h
/** @file * http://www.tty1.net/pycrc/faq_en.html#code-ownership * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ /** * \file crc16-plain.h * Functions and types for CRC checks. * * Generated on ...
C
wireshark/wsutil/crc16.c
/* crc16.c * CRC-16 routine * * 2004 Richard van der Hoff <richardv@mxtelecom.com> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later * * References: * "A Painless Guide to CRC Error Detection Algorit...
C/C++
wireshark/wsutil/crc16.h
/** @file * Declaration of CRC-16 routines and table * * 2004 Richard van der Hoff <richardv@mxtelecom.com> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CRC16_H__ #define __CRC16_H__ ...
C
wireshark/wsutil/crc32.c
/* crc32.c * CRC-32 routine * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later * * Credits: * * Table from Solomon Peachy * Routine from Chris Waters */ #include "config.h" #include <wsutil/crc32.h>...
C/C++
wireshark/wsutil/crc32.h
/** @file * Declaration of CRC-32 routine and table * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CRC32_H__ #define __CRC32_H__ #include <wireshark.h> #ifdef __cplusplus extern "C" { #...
C
wireshark/wsutil/crc5.c
/* crc5.c * CRC-5 routine * * 2019 Tomasz Mon <desowin@gmail.com> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <wsutil/crc5.h> static uint8_t crc5_usb_bits(uint32...
C/C++
wireshark/wsutil/crc5.h
/** @file * Declaration of CRC-5 routines and table * * 2019 Tomasz Mon <desowin@gmail.com> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CRC5_H__ #define __CRC5_H__ #include <wireshar...
C
wireshark/wsutil/crc6.c
/* * crc6.c * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ /* Patch by Ross Jacobs <rossbjacobs@gmail.com>: Fixed CRC6 0x6F lookup table + function per Wireshark bug 14875 */ #include "c...
C/C++
wireshark/wsutil/crc6.h
/** @file * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CRC6_H__ #define __CRC6_H__ #include <wireshark.h> WS_DLL_PUBLIC uint16_t crc6_0X6F(uint16_t crc6, const uint8_t *data_blk_ptr, i...
C
wireshark/wsutil/crc7.c
/** * crc7.c * * Functions and types for CRC checks. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later * * * Generated on Wed Jul 11 17:24:30 2012, * by pycrc v0.7.10, http://www.tty1.net/pycrc/ * u...
C/C++
wireshark/wsutil/crc7.h
/** @file * * Functions and types for CRC checks. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later * * Generated on Wed Jul 11 17:24:57 2012, * by pycrc v0.7.10, http://www.tty1.net/pycrc/ * using th...
C
wireshark/wsutil/crc8.c
/* crc8.c * Implementation CRC-8 declarations and routines * * 2011 Roland Knall <rknall@gmail.com> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <wsutil/crc8.h> ...
C/C++
wireshark/wsutil/crc8.h
/** @file * Declaration of CRC-8 routine and tables * * 2011 Roland Knall <rknall@gmail.com> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CRC8_H__ #define __CRC8_H__ #include <wiresh...
C
wireshark/wsutil/curve25519.c
/* curve25519.c * NaCl/Sodium-compatible API for Curve25519 cryptography. * * Copyright (c) 2018, Peter Wu <peter@lekensteyn.nl> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "curve2551...
C/C++
wireshark/wsutil/curve25519.h
/** @file * NaCl/Sodium-compatible API for Curve25519 cryptography. * * Copyright (c) 2018, Peter Wu <peter@lekensteyn.nl> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __CURVE25519_H__ ...
C
wireshark/wsutil/dot11decrypt_wep.c
/* dot11decrypt_wep.c * * Copyright (c) 2002-2005 Sam Leffler, Errno Consulting * Copyright (c) 2006 CACE Technologies, Davis (California) * All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ #include "config.h" /************************************************************************/ /* File i...
C
wireshark/wsutil/eax.c
/* eax.c * Encryption and decryption routines implementing the EAX' encryption mode * Copyright 2010, Edward J. Beroset, edward.j.beroset@us.elster.com * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later *...
C/C++
wireshark/wsutil/eax.h
/** @file * Encryption and decryption routines implementing the EAX' encryption mode * Copyright 2010, Edward J. Beroset, edward.j.beroset@us.elster.com * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later ...
C/C++
wireshark/wsutil/epochs.h
/** @file * * Definitions of epoch values for various absolute time types. * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 2006 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __EPOCHS_H__ #define __EPOCHS_H__ #include <glib.h> /* * Deltas...
C/C++
wireshark/wsutil/exported_pdu_tlvs.h
/** @file * * Definitions for exported_pdu TLVs * Copyright 2013, Anders Broman <anders-broman@ericsson.com> * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef EXPORTED_PDU_TLVS_H #define EXP...
C
wireshark/wsutil/feature_list.c
/* feature_list.c * Routines for gathering and handling lists of present/absent features * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include <wsutil/feature_list.h> void w...
C/C++
wireshark/wsutil/feature_list.h
/** @file * Declarations of routines for gathering and handling lists of * present/absent features (usually actually dependencies) * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #ifndef __WSUTIL_F...
C
wireshark/wsutil/filesystem.c
/* filesystem.c * Filesystem utility routines * * Wireshark - Network traffic analyzer * By Gerald Combs <gerald@wireshark.org> * Copyright 1998 Gerald Combs * * SPDX-License-Identifier: GPL-2.0-or-later */ #include "config.h" #include "filesystem.h" #define WS_LOG_DOMAIN LOG_DOMAIN_WSUTIL #include <stdio.h>...