diff options
author | Alexis La Goutte <alexis.lagoutte@gmail.com> | 2014-03-12 11:07:10 +0100 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2014-03-12 11:52:03 +0000 |
commit | 1ab950cc4c44763d2fbe686b1551570a5bbfb026 (patch) | |
tree | d362eed84117305aee520127a346ddb9c0e42aca /epan/dissectors/packet-vxlan.c | |
parent | 2a9294356a36f297153fe255b149e6ab39310e82 (diff) |
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>
Diffstat (limited to 'epan/dissectors/packet-vxlan.c')
-rw-r--r-- | epan/dissectors/packet-vxlan.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/epan/dissectors/packet-vxlan.c b/epan/dissectors/packet-vxlan.c index 6d3018350d..0b44f6a68c 100644 --- a/epan/dissectors/packet-vxlan.c +++ b/epan/dissectors/packet-vxlan.c @@ -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: */ - - |