Wireshark 4.5.0
The Wireshark network protocol analyzer
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Macros | Functions
clopts_common.h File Reference
#include <wireshark.h>

Go to the source code of this file.

Macros

#define LONGOPT_BASE_CAPTURE   1000
 
#define LONGOPT_BASE_DISSECTOR   2000
 
#define LONGOPT_BASE_APPLICATION   3000
 
#define LONGOPT_BASE_GUI   4000
 
#define LONGOPT_READ_CAPTURE_COMMON    {"read-file", ws_required_argument, NULL, 'r' }, \
 
#define OPTSTRING_READ_CAPTURE_COMMON    "r:"
 

Functions

WS_DLL_PUBLIC bool get_natural_int (const char *string, const char *name, int32_t *number)
 
WS_DLL_PUBLIC bool get_positive_int (const char *string, const char *name, int32_t *number)
 
WS_DLL_PUBLIC bool get_natural_int64 (const char *string, const char *name, int64_t *number)
 
WS_DLL_PUBLIC bool get_positive_int64 (const char *string, const char *name, int64_t *number)
 
WS_DLL_PUBLIC bool get_uint32 (const char *string, const char *name, uint32_t *number)
 
WS_DLL_PUBLIC bool get_nonzero_uint32 (const char *string, const char *name, uint32_t *number)
 
WS_DLL_PUBLIC bool get_uint64 (const char *string, const char *name, uint64_t *number)
 
WS_DLL_PUBLIC bool get_nonzero_uint64 (const char *string, const char *name, uint64_t *number)
 
WS_DLL_PUBLIC bool get_positive_double (const char *string, const char *name, double *number)
 

Detailed Description

Handle command-line arguments common to various programs

Wireshark - Network traffic analyzer By Gerald Combs geral.nosp@m.d@wi.nosp@m.resha.nosp@m.rk.o.nosp@m.rg Copyright 1998 Gerald Combs

SPDX-License-Identifier: GPL-2.0-or-later