Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Classes | Typedefs | Enumerations
interface_tree_model.h File Reference
#include <config.h>
#include <wireshark.h>
#include <QAbstractTableModel>
#include <QList>
#include <QMap>
#include <QItemSelection>

Go to the source code of this file.

Classes

class  InterfaceTreeModel
 A table model representing the system's available capture interfaces. More...
 

Typedefs

typedef QList< int > PointList
 

Enumerations

enum  InterfaceTreeColumns {
  IFTREE_COL_EXTCAP , IFTREE_COL_EXTCAP_PATH , IFTREE_COL_HIDDEN , IFTREE_COL_DISPLAY_NAME ,
  IFTREE_COL_DESCRIPTION , IFTREE_COL_NAME , IFTREE_COL_COMMENT , IFTREE_COL_STATS ,
  IFTREE_COL_DLT , IFTREE_COL_PROMISCUOUSMODE , IFTREE_COL_TYPE , IFTREE_COL_ACTIVE ,
  IFTREE_COL_SNAPLEN , IFTREE_COL_BUFFERLEN , IFTREE_COL_MONITOR_MODE , IFTREE_COL_CAPTURE_FILTER ,
  IFTREE_COL_PIPE_PATH , IFTREE_COL_MAX
}
 Column indices for the interface tree model shared across interface-related views. More...
 

Detailed Description

Model for the interface data for display in the interface frame

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

Enumeration Type Documentation

◆ InterfaceTreeColumns

Column indices for the interface tree model shared across interface-related views.

When sorting, QSortFilterProxyModel creates its own mapping instead of using the QModelIndex mapping with mapToSource to determine which column in the proxy model maps to which column in the source. Its own mapping is always done in order; this means that it's easier if all the Views of this model keep the columns in the same relative order, but can omit columns. (If you really need to change the order, QHeaderView::swapSections() can be used.)

Enumerator
IFTREE_COL_EXTCAP 

Extcap plugin indicator icon — InterfaceFrame interfaceTree

IFTREE_COL_EXTCAP_PATH 

Filesystem path to the extcap executable

IFTREE_COL_HIDDEN 

Whether the interface is hidden from the capture list — ManageInterfaceDialog localView

IFTREE_COL_DISPLAY_NAME 

Human-readable display name for the interface — InterfaceFrame interfaceTree

IFTREE_COL_DESCRIPTION 

OS-supplied interface description string — ManageInterfaceDialog localView

IFTREE_COL_NAME 

System interface name (e.g. eth0, en0) — ManageInterfaceDialog localView

IFTREE_COL_COMMENT 

User-editable free-text comment for the interface — ManageInterfaceDialog localView

IFTREE_COL_STATS 

Live packet rate sparkline or traffic statistics — InterfaceFrame interfaceTree

IFTREE_COL_DLT 

Selected data link type (DLT) for the interface

IFTREE_COL_PROMISCUOUSMODE 

Whether promiscuous mode capture is enabled

IFTREE_COL_TYPE 

Interface type (e.g. wired, wireless, pipe, extcap)

IFTREE_COL_ACTIVE 

Whether the interface is selected for the next capture

IFTREE_COL_SNAPLEN 

Snapshot length (in bytes) applied to each captured packet

IFTREE_COL_BUFFERLEN 

Kernel capture buffer size in megabytes

IFTREE_COL_MONITOR_MODE 

Whether 802.11 monitor mode is enabled (wireless interfaces only)

IFTREE_COL_CAPTURE_FILTER 

BPF capture filter string applied to this interface

IFTREE_COL_PIPE_PATH 

Filesystem path or URI for a pipe interface — ManageInterfaceDialog pipeView

IFTREE_COL_MAX 

Sentinel: total number of columns; not displayed