From Reinhard Speyerer: Adding support for LINKTYPE_PPP_ETHER/DLT_PPP_ETHER

svn path=/trunk/; revision=41256
This commit is contained in:
Anders Broman 2012-03-01 07:39:54 +00:00
parent b28516dc00
commit 23ec82fae9
4 changed files with 11 additions and 1 deletions

View File

@ -1289,6 +1289,7 @@ void proto_reg_handoff_pppoes(void)
dissector_handle_t pppoes_handle =
create_dissector_handle(dissect_pppoes, proto_pppoes);
dissector_add_uint("ethertype", ETHERTYPE_PPPOES, pppoes_handle);
dissector_add_uint("wtap_encap", WTAP_ENCAP_PPP_ETHER, pppoes_handle);
/* Get a handle for the PPP dissector */
ppp_handle = find_dissector("ppp");

View File

@ -158,6 +158,11 @@ static const struct {
*/
{ 50, WTAP_ENCAP_PPP },
/*
* Used by NetBSD and OpenBSD pppoe(4).
*/
{ 51, WTAP_ENCAP_PPP_ETHER },
/*
* Apparently used by the Axent Raptor firewall (now Symantec
* Enterprise Firewall).

View File

@ -555,7 +555,10 @@ static struct encap_type_info encap_table_base[] = {
{ "IP over Infiniband", "ip-over-ib" },
/* WTAP_ENCAP_MPEG_2_TS */
{ "ISO/IEC 13818-1 MPEG2-TS", "mp2ts" }
{ "ISO/IEC 13818-1 MPEG2-TS", "mp2ts" },
/* WTAP_ENCAP_PPP_ETHER */
{ "PPP-over-Ethernet session", "pppoes" }
};
gint wtap_num_encap_types = sizeof(encap_table_base) / sizeof(struct encap_type_info);

View File

@ -228,6 +228,7 @@ extern "C" {
#define WTAP_ENCAP_NETANALYZER_TRANSPARENT 136
#define WTAP_ENCAP_IP_OVER_IB 137
#define WTAP_ENCAP_MPEG_2_TS 138
#define WTAP_ENCAP_PPP_ETHER 139
#define WTAP_NUM_ENCAP_TYPES wtap_get_num_encap_types()