aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-lisp.c
AgeCommit message (Collapse)AuthorFilesLines
2015-12-09new_register_dissector -> register_dissector for dissector directory.Michael Mann1-1/+1
Change-Id: Ie39ef054a4a942687bd079f3a4d8c2cc55d5f22c Reviewed-on: https://code.wireshark.org/review/12485 Petri-Dish: Michael Mann <mmann78@netscape.net> Reviewed-by: Michael Mann <mmann78@netscape.net>
2015-10-16Add DEGREE SIGN character to utf8_entities.h and use it.Guy Harris1-4/+7
Add a #define giving the UTF-8 sequence for DEGREE SIGN, and use it in packet-synphasor.c rather than having it define its own version. Use it in some other places rather than a string of two octal values. Change-Id: Ic0f3b23ae0165c9824d89304d683f45bce31dced Reviewed-on: https://code.wireshark.org/review/11102 Reviewed-by: Guy Harris <guy@alum.mit.edu>
2014-12-28Replace ip6_to_str and ip6_guint8_to_str with address_to_str and tvb_ip_to_str.Michael Mann1-3/+1
Change-Id: I1d258923a7a63539ec8456d3e306bca5016a1e4b Reviewed-on: https://code.wireshark.org/review/6060 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com> Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-12-26Replace ip_to_str with [ep_]address_to_str and tvb_ip_to_str.Michael Mann1-3/+1
Change-Id: I40d0c8253743183aecef252040b7dd6742ae5c71 Reviewed-on: https://code.wireshark.org/review/5934 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-12-23Deleting unnecessary #includes from dissectors.Martin Mathieson1-1/+0
Third batch (packet-icmpv6.c -> packet-mac-lte.c). Will look at cleaning up and committing script afterwards. Change-Id: Ib91e36ad200db01c3000605f6a7a21125b96a640 Reviewed-on: https://code.wireshark.org/review/6018 Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com> Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
2014-12-21Cleanup use of #includes in non-generated epan/dissector/*.cBill Meier1-2/+0
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-12-13Use ENC_BIG_ENDIAN when fetching FT_U?INT8 fields ...Bill Meier1-16/+16
(for some dissectors which fetch all other integral fields using ENC_BIG_ENDIAN). Change-Id: Ic18e3172aad76af12b12d6732c88497be22aed56 Reviewed-on: https://code.wireshark.org/review/5748 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-09-19Do encoding-arg changes (all benign)Bill Meier1-2/+2
For: - FT_BYTES: Always use just ENC_NA - integral/floating (other than FT_[U]INT8): Do ENC_NA --> ENC_BIG_ENDIAN Also: - FT_UINT... --> FT_UINT8 in a few cases (to match proto_tree_add_item...) - Change one case of incorrect '||' to '|' Change-Id: I427e0e61618ff8faf55691c8a695930f67d455b0 Reviewed-on: https://code.wireshark.org/review/4184 Reviewed-by: Bill Meier <wmeier@newsguy.com>
2014-07-06Add printf-format annotations, fix garbagePeter Wu1-4/+4
The WRETH dissector showed up some garbage in the column display. Upon further inspection, it turns out that the format string had a trailing percent sign which caused (unsigned)-1 to be returned by g_printf_string_upper_bound (in emem_strdup_vprintf). Then ep_alloc is called with (unsigned)-1 + 1 = 0 memory, no wonder that garbage shows up. ASAN could not even catch this error because EP is in charge of this. So, start adding G_GNUC_PRINTF annotations in each header that uses the "fmt" or "format" paramters (grepped + awk). This revealed some other errors. The NCP2222 dissector was missing a format string (not a security vuln though). Many dissectors used val_to_str with a constant (but empty) string, these have been replaced by val_to_str_const. ASN.1 dissectors were regenerated for this. Minor: the mate plugin used "%X" instead of "%p" for a pointer type. The ncp2222 dissector and wimax plugin gained modelines. Change-Id: I7f3f6a3136116f9b251719830a39a7b21646f622 Reviewed-on: https://code.wireshark.org/review/2881 Reviewed-by: Evan Huus <eapache@gmail.com>
2014-05-25Grab-bag of dead initializers and two actual bugs.Evan Huus1-10/+10
All caught by cppcheck. The two (semi)-interesting bugs are: - in asn1/atn-cpdlc/packet-atn-cpdlc-template.c where the break statement should have been inside the brace, causing potential control-flow weirdness with exceptions - in epan/dissectors/packet-ieee80211.c where the bounds check for tag_len did not match the expert info given Change-Id: Ie173fb8d917aabb9b4571435d671d6f16e1c7569 Reviewed-on: https://code.wireshark.org/review/1793 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Evan Huus <eapache@gmail.com>
2014-05-23LISP : error: declaration of 'address' shadows a global declaration ↵Alexis La Goutte1-4/+4
[-Werror=shadow] Change-Id: I3f490ec40ae3241e9836e0914d43424ff9565fb5 Reviewed-on: https://code.wireshark.org/review/1744 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-05-23Dissect Nonce Locator LCAFLorand Jakab1-1/+102
Change-Id: I23f05cf3a0bc43baac4c4c31f5ce0dc0dffcade1 Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1745 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-05-23Dissect AS Number LCAFLorand Jakab1-1/+99
Change-Id: I03c839a23c037a4d7da63d74e5407f0470301697 Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1742 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-05-21Dissect Multicast Group Membership Information LCAFLorand Jakab1-4/+222
Bug: 10126 Change-Id: I81d643978d663d6905070d3cd7e751286c316fcd Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1716 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-05-21LISP: Add support for MAC address AFILorand Jakab1-11/+106
Change-Id: I105ba5a9623d482c912c94d2c21a1c02d869db56 Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1715 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-05-21Dissect Replication List Entries LCAFLorand Jakab1-0/+134
Bug: 10124 Change-Id: Ided4fff8259bbf1b5cb4b5209be6e3931ab09fe5 Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1711 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-05-21Add value to correct tree in Key/Value LCAFLorand Jakab1-4/+4
Change-Id: Icd4ae54bff25e30406c70739c6c799db2484255b Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1713 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-05-21Dissect Source/Destination 2-Tuple Lookups LCAFLorand Jakab1-0/+167
Change-Id: I0e8595ab5cf5385a7fda636a1804b0788f9eb869 Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1707 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-05-20Update ELP LCAF dissection to new draft revisionLorand Jakab1-8/+9
There was a change in the ELP LCAF packet format between draft-ietf-lisp-lcaf revisions -03 and -04 reversing the flags and AFI fields, to be more consistent with other LCAF types. http://tools.ietf.org/rfcdiff?difftype=--hwdiff&url2=draft-ietf-lisp-lcaf-04.txt Change-Id: I2c572050f413696f2d388969e7db24238783bd56 Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1704 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-05-20Dissect Key/Value Address Pair LCAFLorand Jakab1-2/+139
Change-Id: Ic1640a823816c5cd225c573147ff9b6b8c88879e Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1702 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-28Fix issues reported by clang-analyzerLorand Jakab1-6/+2
Change-Id: Iefb52c674be99af167eef7b2eba249607c1dfefd Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1406 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-26Dissect all details in NAT-T LCAF type...Lorand Jakab1-11/+55
... and remove last remaining proto_tree_add_text() calls! Change-Id: I22e5446a06c22ba1f30f342b21f7676641a7f2e7 Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1352 Reviewed-by: Michael Mann <mmann78@netscape.net>
2014-04-25Dissect all details in ELP LCAF type...Lorand Jakab1-12/+94
... and remove more of the remaining proto_tree_add_text() calls. Change-Id: I0286af7fd6953b9276c15b3e7ce7d80c1bd39e8a Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1350 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-25Fix encodings (found by fix-encoding-args.pl)Lorand Jakab1-5/+5
Change-Id: I9bbdf61b6ac0b24dea4993f07b2608538ef220b2 Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1336 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-24Improve Instance ID LCAF type handlingLorand Jakab1-19/+95
Change-Id: I66b1f4746b67ff88c56c4127647c4baa2d504a93 Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1325 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-24Fix warning: declaration of 'address' shadows a global declaration.AndersBroman1-4/+4
Change-Id: I0be594aca0e8fac3c55492f6c168b0b8c13e63e5 Reviewed-on: https://code.wireshark.org/review/1324 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-24Add support for Geo Coordinates LCAF typeLorand Jakab1-12/+253
Additionally, improve the way LCAF top-level tree item shows details from the information gathered later, including for AFI List LCAF types. For someone interested just in the summary from an LCAF type, this can save one or two clicks opening subrees. Change-Id: I40ea05ddf922bcb2a2a934f5e791f87133ca32cc Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1323 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-24Fix Warning: Found soft-deprecated APIs in epan/dissectors/packet-lisp.c: ↵Alexis La Goutte1-4/+4
tvb_length and also fix warning found by fix-encodings-args Change-Id: I20193d9f2700e8ede439dcc848390ff7672239b3 Reviewed-on: https://code.wireshark.org/review/1318 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-04-24Improve LCAF handlingLorand Jakab1-55/+130
Also, remove some more proto_tree_add_text() occurrences. Change-Id: Ie46e16308b95f190229c22d06c5235ea3464394a Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1317 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2014-04-23Fix LISP dissectior regressions introduced in 1.11Lorand Jakab1-63/+73
This patch fixes dissection of some fields and restores some of the output before the dissector was updated not to use proto_tree_add_text() calls. While at it improve the consistency in the code. Change-Id: Ic30e60de1382f4325bd75e814444205f2fc5a359 Signed-off-by: Lorand Jakab <ljakab@ac.upc.edu> Reviewed-on: https://code.wireshark.org/review/1283 Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-03-04Remove all $Id$ from top of fileAlexis La Goutte1-2/+0
(Using sed : sed -i '/^ \* \$Id\$/,+1 d') Fix manually some typo (in export_object_dicom.c and crc16-plain.c) Change-Id: I4c1ae68d1c4afeace8cb195b53c715cf9e1227a8 Reviewed-on: https://code.wireshark.org/review/497 Reviewed-by: Anders Broman <a.broman58@gmail.com>
2013-12-14Fix warningsJakub Zawadzki1-0/+3
svn path=/trunk/; revision=54089
2013-11-09Include <epan/to_str.h> only when needed.Jakub Zawadzki1-0/+1
svn path=/trunk/; revision=53189
2013-09-15More wmem conversion (leaving uat related functions aside)Pascal Quantin1-1/+2
svn path=/trunk/; revision=52055
2013-09-09expert_add_info_format_text -> expert_add_info_formatMichael Mann1-12/+12
svn path=/trunk/; revision=51852
2013-09-02Batch of filterable expert info.Michael Mann1-12/+18
svn path=/trunk/; revision=51688
2013-09-01Remove expert_add_undecoded_item in favor of proto_tree_add_expert.Michael Mann1-2/+11
svn path=/trunk/; revision=51632
2013-08-07Enhance LISP Dissector (Mapping, Locator and Record type...)Alexis La Goutte1-29/+36
Convert proto_tree_add_text calls to proto_tree_add_item (the end of my original commit...) svn path=/trunk/; revision=51187
2013-08-07Remove some set-but-no-longer-used variables.Jeff Morriss1-6/+0
svn path=/trunk/; revision=51186
2013-08-07Try to fix build by removing proto_tree_add_text() call replaced by itemsMartin Mathieson1-9/+0
svn path=/trunk/; revision=51185
2013-08-07Enhance LISP Dissector (Mapping, Locator and Record type...)Alexis La Goutte1-90/+241
Convert proto_tree_add_text calls to proto_tree_add_item svn path=/trunk/; revision=51183
2013-08-05Keep result of [new_]register_dissector in some dissectors.Jakub Zawadzki1-4/+3
svn path=/trunk/; revision=51156
2013-06-28From Lorand Jakab via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8852 :Jeff Morriss1-3/+3
The I and R flags in Map-Notify LISP control packets are shown at an incorrect position. The attached patch fixes the bug. svn path=/trunk/; revision=50210
2013-05-04LISP control packet incorrectly identified as LISP data based when UDP ↵Michael Mann1-0/+3
source port is 4341. Bug 8627 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8627) Also did some minor cleanup/improvements while I was there. svn path=/trunk/; revision=49154
2013-04-13From Loránd Jakab via ↵Pascal Quantin1-2/+2
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8578 : Fix LISP site-ID dissection bug svn path=/trunk/; revision=48836
2013-04-07From Loránd Jakab via ↵Alexis La Goutte1-51/+271
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8555 More features for the Locator/ID Separation Protocol (LISP) dissector This patch adds support in the LISP dissector for the following: * dissect Map-Referral packet subtype * dissect individual fields in mapping records, which are now filterable * some code cleanup The NAT traversal draft added another field to go together with the xTR-ID, the site-ID field. Add support for this field as well. svn path=/trunk/; revision=48772
2012-09-20We always HAVE_CONFIG_H so don't bother checking whether we have it or not.Jeff Morriss1-2/+0
svn path=/trunk/; revision=45017
2012-09-10Initial commit to support yet another method of passing data between dissectors.Jakub Zawadzki1-1/+1
Add new parameter 'data' to heur_dissector_t and new_dissector_t, for now it's always NULL svn path=/trunk/; revision=44860
2012-08-22Put the state of flags in the hop_flags field into the summary line.Guy Harris1-5/+12
Note in the introductory comment what "LISP" refers to, for the benefit of those of us who grew up thinking it stood for "LISt Processing". svn path=/trunk/; revision=44617
2012-08-22Try to make Ubuntu buildbot happyPascal Quantin1-3/+3
svn path=/trunk/; revision=44615