Support for NSH with VXLAN encapsulation

Bug: 12271
Change-Id: Ia6d999049d56a4828936c95e272524e47d84bf8f
Reviewed-on: https://code.wireshark.org/review/16517
Reviewed-by: Michael Mann <mmann78@netscape.net>
Petri-Dish: Michael Mann <mmann78@netscape.net>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
sjha3 2016-07-17 16:10:09 -04:00 committed by Anders Broman
parent f3d91fb58c
commit 0da9995358
1 changed files with 5 additions and 0 deletions

View File

@ -8,6 +8,9 @@
*By Gerald Combs <gerald@wireshark.org>
*Copyright 1998 Gerald Combs
*
*(c) Copyright 2016, Sumit Kumar Jha <sjha3@ncsu.edu>
*Support for VXLAN GPE encapsulation
*
*This program is free software; you can redistribute it and/or
*modify it under the terms of the GNU General Public License
*as published by the Free Software Foundation; either version 2
@ -34,6 +37,7 @@
#define MD_TYPE_1 1
#define MD_TYPE_2 2
#define VXLAN_NSH 4
/* Prototypes */
void proto_reg_handoff_nsh(void);
@ -360,6 +364,7 @@ proto_reg_handoff_nsh(void)
nsh_handle = create_dissector_handle(dissect_nsh, proto_nsh);
dissector_add_uint("gre.proto", ETHERTYPE_NSH, nsh_handle);
dissector_add_uint("vxlan.next_proto", VXLAN_NSH, nsh_handle);
dissector_ip = find_dissector_add_dependency("ip", proto_nsh);
dissector_ipv6 = find_dissector_add_dependency("ipv6", proto_nsh);