Wireshark
2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
caputils
capture_win_ifnames.h
1
/* capture_win_ifnames.h
2
* Routines supporting the use of Windows friendly interface names within Wireshark
3
* Copyright 2011-2012, Mike Garratt <wireshark@evn.co.nz>
4
*
5
* Wireshark - Network traffic analyzer
6
* By Gerald Combs <gerald@wireshark.org>
7
* Copyright 1998 Gerald Combs
8
*
9
* SPDX-License-Identifier: GPL-2.0-or-later
10
*/
11
12
#ifndef CAPTURE_WIN_IFNAMES_H
13
#define CAPTURE_WIN_IFNAMES_H
14
15
/*
16
* If a string is a GUID in {}, fill in a GUID structure with the GUID
17
* value and return TRUE; otherwise, if the string is not a valid GUID
18
* in {}, return FALSE.
19
*/
20
extern
gboolean parse_as_guid(
const
char
*guid_text, GUID *guid);
21
22
/* Get the friendly name for the given GUID */
23
extern
char
*get_interface_friendly_name_from_device_guid(GUID *guid);
24
25
/*
26
* Given an interface name, try to extract the GUID from it and parse it.
27
* If that fails, return NULL; if that succeeds, attempt to get the
28
* friendly name for the interface in question. If that fails, return
29
* NULL, otherwise return the friendly name, allocated with g_malloc()
30
* (so that it must be freed with g_free()).
31
*/
32
extern
char
*get_windows_interface_friendly_name(
const
char
*interface_devicename);
33
34
#endif
Generated by
1.8.11