aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-elasticsearch.c
AgeCommit message (Collapse)AuthorFilesLines
2015-08-09Trivial: Change editor-modelines tab-width specification from 4 to 8.Bill Meier1-2/+2
[There were no actual indentation changes since since none of the files contained tabs]. Change-Id: I92ff551e70274f459c466e1c1d449905e0e7dc92 Reviewed-on: https://code.wireshark.org/review/9945 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2015-02-18Add a CF_FUNC macro for casting BASE_CUSTOM functions.Gerald Combs1-2/+2
Add a CF_FUNC macro to match VALS, TFS, etc. This should help us to avoid the following warning: warning: ISO C forbids initialization between function pointer and 'void *' [-Wpedantic] We could start adding DIAG_OFF+DIAG_ON everywhere but this seems to be more consistent with the other macros in proto.h. Update each instance of BASE_CUSTOM to use CF_FUNC. Adjust a dummy variable name generated by asn2wrs.py that was triggering an invalid error in checkhf.pl. Fix an encoding arguement in packet-elasticsearch.c found by fix-encoding-args.pl. Change-Id: Id0e75076c2d71736639d486f47b87bab84e07d22 Reviewed-on: https://code.wireshark.org/review/7150 Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-01-27Lua: Expose tcp_dissect_pdus() to LuaHadriel Kaplan1-1/+2
Provide a way for Lua-based dissectors to invoke tcp_dissect_pdus() to make TCP-based dissection easier. Bug: 9851 Change-Id: I91630ebf1f1fc1964118b6750cc34238e18a8ad3 Reviewed-on: https://code.wireshark.org/review/6778 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Hadriel Kaplan <hadrielk@yahoo.com> Tested-by: Hadriel Kaplan <hadrielk@yahoo.com>
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-2/+3
Specifically: - Set packet.h to be the first wireshark #include after config.h and "system" #includes. packet.h added as an #include in some cases when missing. - Remove some #includes included (directly/indirectly) in packet.h. E.g., glib.h. (Done only for those files including packet.h). - As needed, move "system" #includes to be after config.h and before wireshark #includes. - Rework various #include file specifications for consistency. - Misc. Change-Id: Ifaa1a14b50b69fbad38ea4838a49dfe595c54c95 Reviewed-on: https://code.wireshark.org/review/5923 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-11-14Use G_GUINT64_FORMAT to format a guint64.Guy Harris1-3/+3
A 64-bit integer isn't necessarily a long, it might be a long long. Use G_GUINT64_FORMAT to format it. Make it a guint64 while we're at it - the field is a FT_GUINT64. Change-Id: I7ee855905ea77347576005441824b1c4630f5659 Reviewed-on: https://code.wireshark.org/review/5302 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-11-14Dissector for elasticsearch protocolRyan Doyle1-0/+768
Provides dissection for the elasticsearch protocol. This includes full dissection of the multicast discovery protocol, the HTTP query interface and partial dissection of the binary protocol. Change-Id: I738fb498976e44fa05168c2bc3a7e842a9e96df9 Reviewed-on: https://code.wireshark.org/review/4948 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>