Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
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 int get_natural_int (const char *string, const char *name)
 
WS_DLL_PUBLIC int get_positive_int (const char *string, const char *name)
 
WS_DLL_PUBLIC uint32_t get_uint32 (const char *string, const char *name)
 
WS_DLL_PUBLIC uint32_t get_nonzero_uint32 (const char *string, const char *name)
 
WS_DLL_PUBLIC uint64_t get_uint64 (const char *string, const char *name)
 
WS_DLL_PUBLIC uint64_t get_nonzero_uint64 (const char *string, const char *name)
 
WS_DLL_PUBLIC double get_positive_double (const char *string, const char *name)
 

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