Add WTAP_ENCAP_NETLINK which maps to DLT_NETLINK /253/

svn path=/trunk/; revision=53834
This commit is contained in:
Jakub Zawadzki 2013-12-07 23:25:36 +00:00
parent 3c2bd00ccf
commit 4904620661
3 changed files with 6 additions and 0 deletions

View File

@ -417,6 +417,8 @@ static const struct {
{ 251, WTAP_ENCAP_BLUETOOTH_LE_LL},
/* Wireshark Upper PDU export */
{ 252, WTAP_ENCAP_WIRESHARK_UPPER_PDU},
/* Netlink Protocol (nlmon devices) */
{ 253, WTAP_ENCAP_NETLINK },
/*
* To repeat:

View File

@ -692,6 +692,9 @@ static struct encap_type_info encap_table_base[] = {
/* WTAP_ENCAP_STANAG_5066_D_PDU */
{ "STANAG 5066 Data Transfer Sublayer PDUs(D_PDU)", "s5066-dpdu"},
/* WTAP_ENCAP_NETLINK */
{ "Netlink", "Linux netlink" },
};
WS_DLL_LOCAL

View File

@ -251,6 +251,7 @@ extern "C" {
#define WTAP_ENCAP_WIRESHARK_UPPER_PDU 156
#define WTAP_ENCAP_STANAG_4607 157
#define WTAP_ENCAP_STANAG_5066_D_PDU 158
#define WTAP_ENCAP_NETLINK 159
/* After adding new item here, please also add new item to encap_table_base array */
#define WTAP_NUM_ENCAP_TYPES wtap_get_num_encap_types()