Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Functions
capture_win_ifnames.h File Reference

Go to the source code of this file.

Functions

bool parse_as_guid (const char *guid_text, GUID *guid)
 
char * get_interface_friendly_name_from_device_guid (__in GUID *guid)
 Get the friendly name for a network interface using its GUID.
 
char * get_windows_interface_friendly_name (const char *interface_devicename)
 Get the friendly name for a network interface using its device name.
 

Detailed Description

Routines supporting the use of Windows friendly interface names within Wireshark Copyright 2011-2012, Mike Garratt wires.nosp@m.hark.nosp@m.@evn..nosp@m.co.n.nosp@m.z

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

Function Documentation

◆ get_interface_friendly_name_from_device_guid()

char * get_interface_friendly_name_from_device_guid ( __in GUID *  guid)
extern

Get the friendly name for a network interface using its GUID.

Parameters
guidPointer to the GUID structure representing the network interface.
Returns
A dynamically allocated string containing the friendly name of the interface, or NULL if the operation fails.

◆ get_windows_interface_friendly_name()

char * get_windows_interface_friendly_name ( const char *  interface_devicename)
extern

Get the friendly name for a network interface using its device name.

Given a device name, try to extract the GUID from it and parse it. If that fails, return NULL; if that succeeds, attempt to get the friendly name for the interface in question. If that fails, return NULL, otherwise return the friendly name, allocated with g_malloc() (so that it must be freed with g_free()).

Parameters
interface_devicenamePointer to the string representing the network interface's device name.
Returns
A dynamically allocated string containing the friendly name of the interface, or NULL if the operation fails.