Enhance VXLAN dissector

* Fix modelines (no CR after modelines)
* Add UDP Port (Attributed in draft 04 Port 4789)
* Update link to last draft (no specify change)

Change-Id: I4cd89719ae00eb64ce4c234c39b9e18cdc1b8b93
Reviewed-on: https://code.wireshark.org/review/613
Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Evan Huus <eapache@gmail.com>
This commit is contained in:
Alexis La Goutte 2014-03-12 11:07:10 +01:00 committed by Evan Huus
parent 2a9294356a
commit 1ab950cc4c
1 changed files with 5 additions and 3 deletions

View File

@ -21,7 +21,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Protocol ref:
* http://tools.ietf.org/html/draft-mahalingam-dutt-dcops-vxlan-00
* http://tools.ietf.org/html/draft-mahalingam-dutt-dcops-vxlan-08
*/
@ -29,6 +29,8 @@
#include <epan/packet.h>
#define UDP_PORT_VXLAN 4789
void proto_register_vxlan(void);
void proto_reg_handoff_vxlan(void);
@ -218,7 +220,9 @@ proto_reg_handoff_vxlan(void)
eth_handle = find_dissector("eth");
vxlan_handle = create_dissector_handle(dissect_vxlan, proto_vxlan);
dissector_add_uint("udp.port", UDP_PORT_VXLAN, vxlan_handle);
dissector_add_handle("udp.port", vxlan_handle); /* For 'Decode As' */
}
/*
@ -233,5 +237,3 @@ proto_reg_handoff_vxlan(void)
* vi: set shiftwidth=4 tabstop=8 expandtab:
* :indentSize=4:tabSize=8:noTabs=true:
*/