Wireshark
4.5.0
The Wireshark network protocol analyzer
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
Variables
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
a
b
c
d
e
f
g
h
i
m
o
p
r
s
t
u
v
w
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Enumerations
Files
File List
File Members
All
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
Typedefs
a
b
c
d
e
f
g
h
i
m
p
r
s
t
u
v
w
Enumerations
Enumerator
a
b
c
e
f
h
i
n
o
r
s
t
w
Macros
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
Loading...
Searching...
No Matches
ui
util.h
Go to the documentation of this file.
1
12
#ifndef __UTIL_H__
13
#define __UTIL_H__
14
15
#include <stdint.h>
16
17
#ifdef __cplusplus
18
extern
"C"
{
19
#endif
/* __cplusplus */
20
21
/* Collect command-line arguments as a string consisting of the arguments,
22
* separated by spaces.
23
*/
24
char
*get_args_as_string(
int
argc,
char
**argv,
int
optindex);
25
26
/* Compute the difference between two seconds/microseconds time stamps.
27
* Beware: we're using nanosecond resolution now and function is currently unused
28
*/
29
void
compute_timestamp_diff(
int
*diffsec,
int
*diffusec,
30
uint32_t sec1, uint32_t usec1, uint32_t sec2, uint32_t usec2);
31
32
/* Try to figure out if we're remotely connected, e.g. via ssh or
33
Terminal Server, and create a capture filter that matches aspects of the
34
connection. We match the following environment variables:
35
36
SSH_CONNECTION (ssh): <remote IP> <remote port> <local IP> <local port>
37
SSH_CLIENT (ssh): <remote IP> <remote port> <local port>
38
REMOTEHOST (tcsh, others?): <remote name>
39
DISPLAY (x11): [remote name]:<display num>
40
CLIENTNAME (terminal server): <remote name>
41
*/
42
const
char
*get_conn_cfilter(
void
);
43
47
bool
display_is_remote
(
void
);
48
53
extern
const
char
*
get_last_open_dir
(
void
);
54
59
extern
void
set_last_open_dir
(
const
char
*dirname);
60
65
extern
const
char
*
get_open_dialog_initial_dir
(
void
);
66
67
#ifdef __cplusplus
68
}
69
#endif
/* __cplusplus */
70
71
#endif
/* __UTIL_H__ */
set_last_open_dir
void set_last_open_dir(const char *dirname)
Definition
util.c:355
get_last_open_dir
const char * get_last_open_dir(void)
Definition
util.c:349
display_is_remote
bool display_is_remote(void)
Definition
util.c:334
get_open_dialog_initial_dir
const char * get_open_dialog_initial_dir(void)
Definition
util.c:378
Generated by
1.9.8