language stringlengths 0 24 | filename stringlengths 9 214 | code stringlengths 99 9.93M |
|---|---|---|
C/C++ | wireshark/wsutil/filesystem.h | /** @file
* Filesystem utility definitions
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef FILESYSTEM_H
#define FILESYSTEM_H
#include <wireshark.h>
#ifdef __cplusplus
extern "C" {
#endif /... |
C | wireshark/wsutil/file_util.c | /* file_util.c
*
* (Originally part of the Wiretap Library, now part of the Wireshark
* utility library)
* Copyright (c) 1998 by Gilbert Ramirez <gram@alumni.rice.edu>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
* File wrapper functions to replace the file functions from GLib like
* g_open().
*
* W... |
C/C++ | wireshark/wsutil/file_util.h | /** @file
* File utility definitions
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __FILE_UTIL_H__
#define __FILE_UTIL_H__
#include <glib.h>
#include "ws_symbol_export.h"
#ifdef _WIN32
... |
C | wireshark/wsutil/filter_files.c | /* filter_files.c
* Code for reading and writing the filters file.
*
* 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>
#define WS_LOG_DOMAIN LOG_DOMAIN_WSUTIL
#include "filter_files.... |
C/C++ | wireshark/wsutil/filter_files.h | /** @file
*
* Declarations of routines for reading and writing the filters file.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __FILTER_FILES_H__
#define __FILTER_FILES_H__
#include <wir... |
C | wireshark/wsutil/g711.c | /*
* This source code is a product of Sun Microsystems, Inc. and is provided
* for unrestricted use. Users may copy or modify this source code without
* charge.
*
* SUN SOURCE CODE IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING
* THE WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
... |
C/C++ | wireshark/wsutil/g711.h | /** @file
*
* Definitions for routines for u-law, A-law and linear PCM conversions
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __G711_H__
#define __G711_H__
#include "ws_symbol_export.... |
C/C++ | wireshark/wsutil/glib-compat.h | /** @file
*
* Definitions to provide some functions that are not present in older
* GLIB versions we support (currently down to 2.50)
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef GLIB_COMPAT_H
#de... |
C | wireshark/wsutil/inet_addr.c | /* inet_addr.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"
#define WS_LOG_DOMAIN LOG_DOMAIN_WSUTIL
#include "inet_addr.h"
#include <errno.h>
#include <string.h>
#ifdef HAVE_... |
C/C++ | wireshark/wsutil/inet_addr.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 __WS_INET_ADDR_H__
#define __WS_INET_ADDR_H__
#include <wireshark.h>
#include "inet_ipv4.h"
#include "inet_ipv6.h"
/*
* These are... |
C/C++ | wireshark/wsutil/inet_ipv4.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 __INET_IPV4_H__
#define __INET_IPV4_H__
#include <glib.h>
typedef guint32 ws_in4_addr; /* 32 bit IPv4 address, in network byte orde... |
C/C++ | wireshark/wsutil/inet_ipv6.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 __INET_IPV6_H__
#define __INET_IPV6_H__
#include <glib.h>
#define IPv6_ADDR_SIZE 16
#define IPv6_HDR_SIZE 40
#define IP... |
C | wireshark/wsutil/interface.c | /* interface.c
* Utility functions to get infos from interfaces
*
* Copyright 2016, Dario Lombardo
*
* 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 "interface.h"
#inc... |
C/C++ | wireshark/wsutil/interface.h | /** @file
* Utility functions to get infos from interfaces
*
* Copyright 2016, Dario Lombardo
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _INTERFACE_H
#define _INTERFACE_H
#include <g... |
C | wireshark/wsutil/introspection.c | /*
* Copyright 2021, João Valverde <j@v6e.pt>
*
* 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 "introspection.h"
#include <string.h>
#include <stdlib.h>
static int
comp... |
C/C++ | wireshark/wsutil/introspection.h | /** @file
* Copyright 2021, João Valverde <j@v6e.pt>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _INTROSPECTION_H_
#define _INTROSPECTION_H_
#include <stddef.h>
#include <ws_symbol_exp... |
C | wireshark/wsutil/jsmn.c | /*
Copyright (c) 2010 Serge A. Zaitsev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute... |
C/C++ | wireshark/wsutil/jsmn.h | /** @file
Copyright (c) 2010 Serge A. Zaitsev
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, di... |
C | wireshark/wsutil/json_dumper.c | /* json_dumper.c
* Routines for serializing data as JSON.
*
* Copyright 2018, Peter Wu <peter@lekensteyn.nl>
* Copyright (C) 2016 Jakub Zawadzki
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#i... |
C/C++ | wireshark/wsutil/json_dumper.h | /** @file
* Routines for serializing data as JSON.
*
* Copyright 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 __JSON_DUMPER_H__
#define __JSON_DUMPE... |
C | wireshark/wsutil/mpeg-audio.c | /* mpeg-audio.c
*
* MPEG Audio header dissection
* Written by Shaun Jackman <sjackman@gmail.com>
* Copyright 2007 Shaun Jackman
*
* Wiretap Library
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "mpeg-audio.h"
static const int mpa_versions[4] = { 2, -1, 1, 0 };
static const int mpa_layers[4] = { -1, ... |
C/C++ | wireshark/wsutil/mpeg-audio.h | /** @file
*
* MPEG Audio header dissection
* Written by Shaun Jackman <sjackman@gmail.com>
* Copyright 2007 Shaun Jackman
*
* Wiretap Library
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef MPA_H
#define MPA_H 1
#include <glib.h>
#include "ws_symbol_export.h"
struct mpa {
unsigned int emphasis :2;
... |
C | wireshark/wsutil/nstime.c | /* nstime.c
* Routines for manipulating nstime_t structures
*
* Copyright (c) 2005 MX Telecom Ltd. <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
*/
#include "nstime.h"
#in... |
C/C++ | wireshark/wsutil/nstime.h | /* nstime.h
* Definition of data structure to hold time values with nanosecond resolution
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __NSTIME_H__
#define __NSTIME_H__
#include <wiresha... |
C | wireshark/wsutil/os_version_info.c | /* os_version_info.c
* Routines to report operating system version 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/os_version_info.h>
#include <str... |
C/C++ | wireshark/wsutil/os_version_info.h | /** @file
* Declarations of outines to report operating system version 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_OS_VERSION_INFO_H__
#define __WSUTIL_OS_VERSION_IN... |
Inno Setup Script | wireshark/wsutil/path_config.h.in | #ifndef __PATH_CONFIG_H__
#define __PATH_CONFIG_H__
#define INSTALL_PREFIX "@PATH_INSTALL_PREFIX@"
#define DATA_DIR "@PATH_DATA_DIR@"
#define DOC_DIR "@PATH_DOC_DIR@"
#define PLUGIN_DIR "@PATH_PLUGIN_DIR@"
#define EXTCAP_DIR "@PATH_EXTCAP_DIR@"
#endif |
C/C++ | wireshark/wsutil/pint.h | /** @file
*
* Definitions for extracting and translating integers safely and portably
* via pointers.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __PINT_H__
#define __PINT_H__
#includ... |
C | wireshark/wsutil/please_report_bug.c | /* please_report_bug.c
* Routines returning strings to use when reporting a bug.
* They ask the user to report a bug to the Wireshark developers.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#in... |
C/C++ | wireshark/wsutil/please_report_bug.h | /** @file
* Declarations of routines returning strings to use when reporting a bug.
* They ask the user to report a bug to the Wireshark developers.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
... |
C | wireshark/wsutil/plugins.c | /* plugins.c
* plugin 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"
#define WS_LOG_DOMAIN LOG_DOMAIN_PLUGINS
#include "plugins.h"
#include <time.h>
#include <stdlib.... |
C/C++ | wireshark/wsutil/plugins.h | /** @file
* definitions for plugins structures
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __PLUGINS_H__
#define __PLUGINS_H__
#include <wireshark.h>
#ifdef __cplusplus
extern "C" {
#e... |
C/C++ | wireshark/wsutil/pow2.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 __WS_POW2_H__
#define __WS_POW2_H__
/*
* Macros to calculate pow2^M, for various power-of-2 values and positive
* integer values o... |
C | wireshark/wsutil/privileges.c | /* privileges.c
* Routines for handling privileges, e.g. set-UID and set-GID on UNIX.
*
* 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"
#define WS_LOG_DOMAIN LOG_DOMAIN_WSUTIL
#if... |
C/C++ | wireshark/wsutil/privileges.h | /** @file
* Declarations of routines for handling privileges.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 2006 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __PRIVILEGES_H__
#define __PRIVILEGES_H__
#include <wireshark.h>
#ifdef __cplu... |
C/C++ | wireshark/wsutil/processes.h | /** @file
*
* Process utility definitions
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _WSUTIL_PROCESSES_H_
#define _WSUTIL_PROCESSES_H_
#include "ws_symbol_export.h"
#ifdef _WIN32
/*
... |
C | wireshark/wsutil/regex.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 "regex.h"
#include <wsutil/ws_return.h>
#include <wsutil/str_util.h>
#include <pcre2.h>
struct _ws_regex {
pcre2_c... |
C/C++ | wireshark/wsutil/regex.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_REGEX_H__
#define __WSUTIL_REGEX_H__
#include <wireshark.h>
#ifdef __cplusplus
extern "C" {
#endif
struct _ws_regex;
type... |
C | wireshark/wsutil/report_message.c | /* report_message.c
* Routines for code that can run in GUI and command-line environments to
* use to report errors and warnings to the user (e.g., I/O errors, or
* problems with preference settings) if the message should be shown as
* a GUI error in a GUI environment.
*
* The application using libwsutil will reg... |
C/C++ | wireshark/wsutil/report_message.h | /** @file
* Declarations of routines for code that can run in GUI and command-line
* environments to use to report errors and warnings to the user (e.g.,
* I/O errors, or problems with preference settings) if the message should
* be shown as a GUI error in a GUI environment.
*
* The application using libwsutil wi... |
C | wireshark/wsutil/rsa.c | /* rsa.c
*
* Functions for RSA private key reading and use
*
* 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"
#define WS_LOG_DOMAIN LOG_DOMAIN_WSUTIL
#include "rsa.h"
#include "fi... |
C/C++ | wireshark/wsutil/rsa.h | /** @file
*
* Functions for RSA private key reading and use
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 2007 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __RSA_H__
#define __RSA_H__
#include <wireshark.h>
#include <gcrypt.h>
#ifdef H... |
C/C++ | wireshark/wsutil/safe-math.h | /* Overflow-safe math functions
* Portable Snippets - https://github.com/nemequ/portable-snippets
* Created by Evan Nemerson <evan@nemerson.com>
*
* To the extent possible under law, the authors have waived all
* copyright and related or neighboring rights to this code. For
* details, see the Creative Comm... |
C/C++ | wireshark/wsutil/sign_ext.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_SIGN_EXT_H__
#define __WSUTIL_SIGN_EXT_H__
#include <glib.h>
#include <wsutil/ws_assert.h>
/* sign extension routines */
... |
C | wireshark/wsutil/sober128.c | /* This file is derived from sober128 implementation in corosync
cluster engine. corosync cluster engine borrows the implementation
from LibTomCrypt.
The latest version of the original code can be found at
http://www.libtom.net/LibTomCrypt/ according to which this code is in the
Public Domain
*/
/* ... |
C/C++ | wireshark/wsutil/sober128.h | /** @file
This file is derived from sober128 implementation in corosync
cluster engine. corosync cluster engine borrows the implementation
from LibTomCrypt.
The latest version of the original code can be found at
http://www.libtom.net/LibTomCrypt/ according to which this code is in the
Public Domain
... |
C | wireshark/wsutil/socket.c | /* socket.c
* Socket wrappers
*
* Copyright 2019, Gerald Combs
*
* 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 "socket.h"
#include <stdlib.h>
#include <errno.h>
#inc... |
C/C++ | wireshark/wsutil/socket.h | /** @file
* Socket wrappers
*
* Copyright 2016, Dario Lombardo
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __SOCKET_H__
#define __SOCKET_H__
#include <wireshark.h>
#if defined(_WIN32)... |
C | wireshark/wsutil/strnatcmp.c | /* strnatcmp.c
*
* Original code downloaded from: http://sourcefrog.net/projects/natsort/
strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
Copyright (C) 2000, 2004 by Martin Pool <mbp sourcefrog net>
SPDX-License-Identifier: Zlib
*/
/* partial change history:
*
* 2004-10-10 mbp: Lift o... |
C/C++ | wireshark/wsutil/strnatcmp.h | /** @file
*
* Original code downloaded from: http://sourcefrog.net/projects/natsort/
strnatcmp.c -- Perform 'natural order' comparisons of strings in C.
Copyright (C) 2000, 2004 by Martin Pool <mbp sourcefrog net>
SPDX-License-Identifier: Zlib
*/
#ifndef STRNATCMP_H
#define STRNATCMP_H
#include "ws_symbol_... |
C | wireshark/wsutil/strptime.c | /*
Convert a string representation of time to a time value.
Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
SPDX-License-Identifier: LGPL-2.0-or-later */
/* XXX This version of th... |
C/C++ | wireshark/wsutil/strptime.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 __STRPTIME_H__
#define __STRPTIME_H__
#include <ws_symbol_export.h>
#include <time.h>
/*
* Version of "strptime()", for the benefi... |
C | wireshark/wsutil/strtoi.c | /* strtoi.c
* Utilities to convert strings to integers
*
* Copyright 2016, Dario Lombardo
*
* 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 "strtoi.h"
#include <errno.h... |
C/C++ | wireshark/wsutil/strtoi.h | /** @file
* Utilities to convert strings to integers
*
* Copyright 2016, Dario Lombardo
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef _WS_STRTOI_H
#define _WS_STRTOI_H
#include <glib.h>... |
C | wireshark/wsutil/str_util.c | /* str_util.c
* String utility routines
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#define _GNU_SOURCE
#include "config.h"
#include "str_util.h"
#include <string.h>
#include <ws_codepoints.h>... |
C/C++ | wireshark/wsutil/str_util.h | /** @file
* String utility definitions
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __STR_UTIL_H__
#define __STR_UTIL_H__
#include <wireshark.h>
#include <wsutil/wmem/wmem.h>
#ifdef __c... |
C | wireshark/wsutil/tempfile.c | /* tempfile.c
* Routines to create temporary files
*
* 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 "tempfile.h"
#include <errno.h>
#include "file_util.h"
static char ... |
C/C++ | wireshark/wsutil/tempfile.h | /* tempfile.h
* Declarations of routines to create temporary files
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __TEMPFILE_H__
#define __TEMPFILE_H__
#include <wireshark.h>
#ifdef __cpl... |
C | wireshark/wsutil/test_wsutil.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 <stdio.h>
#include <glib.h>
#include <wsutil/utf8_entities.h>
#include <wsutil/time_util.h>
#include "inet_addr.h"
stat... |
C | wireshark/wsutil/time_util.c | /* time_util.c
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#define _GNU_SOURCE /* For strptime(). */
#include "config.h"
#define WS_LOG_DOMAIN LOG_DOMAIN_WSUTIL
#include "time_util.h"
#include <... |
C/C++ | wireshark/wsutil/time_util.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 __TIME_UTIL_H__
#define __TIME_UTIL_H__
#include <wireshark.h>
#include <time.h>
#ifdef __cplusplus
extern "C" {
#endif /* __cplusp... |
C | wireshark/wsutil/to_str.c | /* wsutil/to_str.c
* Routines for utilities to convert various other types to strings.
*
* 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 "to_str.h"
#include <stdio.h>
#in... |
C/C++ | wireshark/wsutil/to_str.h | /** @file
*
* Definitions for utilities to convert various other types to strings.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __WSUTIL_TO_STR_H__
#define __WSUTIL_TO_STR_H__
#include ... |
C | wireshark/wsutil/type_util.c | /* type_util.c
* Types 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 "type_util.h"
/*
* guint64 to gdouble conversions taken from gstutils.c of GSt... |
C/C++ | wireshark/wsutil/type_util.h | /** @file
* Types utility definitions
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __TYPE_UTIL_H__
#define __TYPE_UTIL_H__
#include <glib.h>
#include "ws_symbol_export.h"
/*
* guint64 ... |
C | wireshark/wsutil/unicode-utils.c | /* unicode-utils.c
* Unicode utility routines
*
* 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 "unicode-utils.h"
int ws_utf8_seqlen[256] = {
1,1,1,1,1,1,1,1,1,1,1,1... |
C/C++ | wireshark/wsutil/unicode-utils.h | /* unicode-utils.h
* Unicode utility definitions
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 2006 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __UNICODEUTIL_H__
#define __UNICODEUTIL_H__
#include <wireshark.h>
#ifdef _WIN32
#include <... |
C/C++ | wireshark/wsutil/utf8_entities.h | /** @file
*
* Byte sequences for various UTF-8 entities
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __UTF8_ENTITIES_H__
#define __UTF8_ENTITIES_H__
/*
* Sequences can be found at
* ... |
C | wireshark/wsutil/version_info.c | /* version_info.c
* Routines to report version information for Wireshark 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 "version_info.h"
#include <stdio.h>
#i... |
C/C++ | wireshark/wsutil/version_info.h | /** @file
*
* Declarations of routines to report version information for Wireshark
* programs
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __WS_VERSION_INFO_H__
#define __WS_VERSION_INF... |
C | wireshark/wsutil/win32-utils.c | /* win32-utils.c
* Win32 utility routines
*
* 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 "win32-utils.h"
#include <tchar.h>
#include <versionhelpers.h>
/* Quote the ... |
C/C++ | wireshark/wsutil/win32-utils.h | /* win32-utils.h
* Windows utility definitions
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 2006 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __WIN32UTIL_H__
#define __WIN32UTIL_H__
#include <wireshark.h>
#include <windows.h>
/**
* @... |
C | wireshark/wsutil/wsgcrypt.c | /* wsgcrypt.c
* Helper functions for libgcrypt
* By Erik de Jong <erikdejong@gmail.com>
* Copyright 2017 Erik de Jong
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "wsgcrypt.h"
gcry_er... |
C/C++ | wireshark/wsutil/wsgcrypt.h | /** @file
*
* Wrapper around libgcrypt's include file gcrypt.h.
* For libgcrypt 1.5.0, including gcrypt.h directly brings up lots of
* compiler warnings about deprecated definitions.
* Try to work around these warnings to ensure a clean build with -Werror.
*
* Wireshark - Network traffic analyzer
* By Gerald Co... |
C | wireshark/wsutil/wsjson.c | /* wsjson.c
* JSON parsing functions.
*
* Copyright 2016, Dario Lombardo
*
* 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"
#define WS_LOG_DOMAIN LOG_DOMAIN_MAIN
#include "wsjson... |
C/C++ | wireshark/wsutil/wsjson.h | /** @file
*
* JSON parsing functions.
*
* Copyright 2016, Dario Lombardo
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __WSJSON_H__
#define __WSJSON_H__
#include "ws_symbol_export.h"
#... |
C | wireshark/wsutil/wslog.c | /*
* Copyright 2021, João Valverde <j@v6e.pt>
*
* 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 "wslog.h"
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#in... |
C/C++ | wireshark/wsutil/wslog.h | /** @file
*
* Copyright 2021, João Valverde <j@v6e.pt>
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __WSLOG_H__
#define __WSLOG_H__
#include <inttypes.h>
#include <stdbool.h>
#include ... |
C/C++ | wireshark/wsutil/ws_assert.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 __WS_ASSERT_H__
#define __WS_ASSERT_H__
#include <ws_symbol_export.h>
#include <ws_attributes.h>
#include <stdbool.h>
#include <stri... |
C/C++ | wireshark/wsutil/ws_cpuid.h | /** @file
* Get the CPU info on x86 processors that support it
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
/*
* Get CPU info on platforms where the x86 cpuid instruction can be used.
*
* Skip... |
C | wireshark/wsutil/ws_getopt.c | /*
* musl as a whole is licensed under the following standard MIT license:
*
* ----------------------------------------------------------------------
* Copyright © 2005-2020 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated doc... |
C/C++ | wireshark/wsutil/ws_getopt.h | /** @file
*
* musl as a whole is licensed under the following standard MIT license:
*
* ----------------------------------------------------------------------
* Copyright © 2005-2020 Rich Felker, et al.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and asso... |
C | wireshark/wsutil/ws_mempbrk.c | /* ws_mempbrk.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"
/* see bug 10798: there is a bug in the compiler the buildbots use for Mac OSX
and SSE4.2, so we're not going t... |
C/C++ | wireshark/wsutil/ws_mempbrk.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 __WS_MEMPBRK_H__
#define __WS_MEMPBRK_H__
#include <wireshark.h>
#ifdef HAVE_SSE4_2
#include <emmintrin.h>
#endif
/** The pattern ... |
C/C++ | wireshark/wsutil/ws_mempbrk_int.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 __WS_MEMPBRK_INT_H__
#define __WS_MEMPBRK_INT_H__
const guint8 *ws_mempbrk_portable_exec(const guint8* haystack, size_t haystacklen,... |
C | wireshark/wsutil/ws_mempbrk_sse42.c | /* strcspn with SSE4.2 intrinsics
Copyright (C) 2009-2014 Free Software Foundation, Inc.
Contributed by Intel Corporation.
This file is part of the GNU C Library.
SPDX-License-Identifier: LGPL-2.1-or-later
*/
#include "config.h"
#ifdef HAVE_SSE4_2
#include <glib.h>
#include "ws_cpuid.h"
#ifdef _WIN32
... |
C | wireshark/wsutil/ws_pipe.c | /* ws_pipe.c
*
* Routines for handling pipes.
*
* 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>
#define WS_LOG_DOMAIN LOG_DOMAIN_CAPTURE
#include "wsutil/ws_pipe.h"
#include <std... |
C/C++ | wireshark/wsutil/ws_pipe.h | /** @file
*
* Routines for handling pipes.
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __WS_PIPE_H__
#define __WS_PIPE_H__
// ws_symbol_export and WS_INVALID_PID
#include "wsutil/proce... |
C/C++ | wireshark/wsutil/ws_return.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 __WS_RETURN_H__
#define __WS_RETURN_H__
#include <wsutil/wslog.h>
#include <wsutil/wmem/wmem.h>
/*
* These macros can be used as a... |
C/C++ | wireshark/wsutil/ws_roundup.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 __WS_ROUNDUP_H__
#define __WS_ROUNDUP_H__
/*
* Round up to various powers of 2.
*/
#define WS_ROUNDUP_2(n) (((n) + ((guint)(2U-1U)... |
C | wireshark/wsutil/xtea.c | /* xtea.c
* Implementation of XTEA cipher
* By Ahmad Fatoum <ahmad[AT]a3f.at>
* Copyright 2017 Ahmad Fatoum
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#include "xtea.h"
#include <string.h>
... |
C/C++ | wireshark/wsutil/xtea.h | /** @file
*
* Implementation of XTEA cipher
* By Ahmad Fatoum <ahmad[AT]a3f.at>
* Copyright 2017 Ahmad Fatoum
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __XTEA_H__
#define __XTEA_H__... |
C/C++ | wireshark/wsutil/wmem/wmem-int.h | /** @file
*
* Internal definitions for the Wireshark Memory Manager
* Copyright 2012, Evan Huus <eapache@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 __WMEM_INT_H__
#define _... |
C/C++ | wireshark/wsutil/wmem/wmem.h | /** @file
*
* Definitions for the Wireshark Memory Manager
* Copyright 2012, Evan Huus <eapache@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 __WMEM_H__
#define __WMEM_H__
#i... |
C/C++ | wireshark/wsutil/wmem/wmem_allocator.h | /** @file
*
* Definitions for the Wireshark Memory Manager Allocator
* Copyright 2012, Evan Huus <eapache@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 __WMEM_ALLOCATOR_H__
#d... |
C | wireshark/wsutil/wmem/wmem_allocator_block.c | /* wmem_allocator_block.c
* Wireshark Memory Manager Large-Block Allocator (version 3)
* Copyright 2013, Evan Huus <eapache@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 <stdi... |
C/C++ | wireshark/wsutil/wmem/wmem_allocator_block.h | /** @file
*
* Definitions for the Wireshark Memory Manager Large-Block Allocator
* Copyright 2012, Evan Huus <eapache@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 __WMEM_ALLO... |
C | wireshark/wsutil/wmem/wmem_allocator_block_fast.c | /* wmem_allocator_block.c
* Wireshark Memory Manager Fast Large-Block Allocator
*
* 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 <stdio.h>
#include <string.h>
#include ... |
C/C++ | wireshark/wsutil/wmem/wmem_allocator_block_fast.h | /** @file
*
* Definitions for the Wireshark Memory Manager Fast Large-Block Allocator
*
* Wireshark - Network traffic analyzer
* By Gerald Combs <gerald@wireshark.org>
* Copyright 1998 Gerald Combs
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
#ifndef __WMEM_ALLOCATOR_BLOCK_FAST_H__
#define __WMEM_ALLOCATO... |
C | wireshark/wsutil/wmem/wmem_allocator_simple.c | /* wmem_allocator_simple.c
* Wireshark Memory Manager Simple Allocator
* Copyright 2012, Evan Huus <eapache@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 ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.