aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dns.h
AgeCommit message (Collapse)AuthorFilesLines
2020-07-14DNS: Try to fix Wpointer-sign warnings.Anders Broman1-1/+1
Change-Id: I8d585d66da894b359d47d16d9850ce709dedbcb7 Reviewed-on: https://code.wireshark.org/review/37853 Petri-Dish: Anders Broman <a.broman58@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2019-08-14Try to fix Wpointer-sign warnings.Anders Broman1-1/+1
Change-Id: I52d24560d4061c996c25b290ee347cc55404c216 Reviewed-on: https://code.wireshark.org/review/33914 Tested-by: Petri Dish Buildbot Petri-Dish: Anders Broman <a.broman58@gmail.com> Reviewed-by: Peter Wu <peter@lekensteyn.nl>
2018-06-19DNS: changed maximum length of dns names from 1025 to 255Erika Szelleova1-1/+1
According to RFC1035 there are limitations on the maximum length of DNS names. The maximum length in the code was defined as 1025, this commit changes it to 255. Also a new macro is introduced which holds the minimum length of a DNS name. Bug: 14041 Change-Id: Ic63b332b2a357e33728df183c05ab0e222faf13f Reviewed-on: https://code.wireshark.org/review/28309 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot Reviewed-by: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-04-02dns: make expand_dns_name() an internal functionMartin Kaiser1-1/+0
The expand_dns_name() function is not used outside of the DNS dissector (any more?). Remove the function declaration from the public header file, make the function internal. Change-Id: Ibba81fa68a0dfd195ca3bbfca3eca20c39cc01f4 Reviewed-on: https://code.wireshark.org/review/26698 Reviewed-by: Martin Kaiser <wireshark@kaiser.cx> Petri-Dish: Martin Kaiser <wireshark@kaiser.cx> Tested-by: Petri Dish Buildbot Reviewed-by: Anders Broman <a.broman58@gmail.com>
2018-02-12dissectors: use SPDX identifiers.Dario Lombardo1-13/+1
Change-Id: I92c94448e6641716d03158a5f332c8b53709423a Reviewed-on: https://code.wireshark.org/review/25756 Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Anders Broman <a.broman58@gmail.com>
2017-01-19dns: change get_dns_name to return consumed bytes + actual name len.Dario Lombardo1-2/+2
Because of the DNS name encoding, the consumed bytes in the tvb and the length of the string of the dns name can be different. We need to handle them separately for the purpose they are. Moreover the name string can contain null bytes, then we can't rely on strlen() but we need the actual length. Subsequent calls to proto_tree_add_string() will require to pass the string to format_text() in order have non-printable characters printed. Bug: 13289 Change-Id: I6d0b295867ece265f8995f82da2c629992aeb703 Reviewed-on: https://code.wireshark.org/review/19539 Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Petri-Dish: Dario Lombardo <lomato@gmail.com> Reviewed-by: Alexis La Goutte <alexis.lagoutte@gmail.com>
2014-10-09Eliminate proto_tree_add_text from packet-nbns.cMichael Mann1-1/+1
Some other cleanup while in the neighborhood. Not sure the all the proto_tree_add_expert calls are needed after each field (having implicit bounds error thrown should be sufficient), but left them in there. Change-Id: I3ca75ec9f51ccbed6b6ca792789daa8e7cebf34a Reviewed-on: https://code.wireshark.org/review/4574 Petri-Dish: Michael Mann <mmann78@netscape.net> Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org> Reviewed-by: Michael Mann <mmann78@netscape.net>
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>
2012-06-28Update Free Software Foundation address.Jakub Zawadzki1-1/+1
(COPYING will be updated in next commit) svn path=/trunk/; revision=43536
2011-11-20Get rid of Warnings.Anders Broman1-1/+1
svn path=/trunk/; revision=39957
2011-02-23Split get_dns_name() into get_dns_name() and expand_dns_name().Gerald Combs1-0/+2
In dissect_ms_compressed_string() dissect_mscldap_string() simply call expand_dns_name() instead of using duplicate (and insecure) code. This *might* break CLDAP and SMB dissection. If that's the case we should probably revert get_dns_name() and simplify expand_dns_name(). Fixes infinite recursion errors found by joernchen of Phenoelit. svn path=/trunk/; revision=36029
2009-03-23Fixed some data types to remove some warnings in the solaris build.Stig Bjørlykke1-1/+1
svn path=/trunk/; revision=27825
2008-08-11From Roy Marples (bug 2781 and bug 2796):Stig Bjørlykke1-1/+1
Display FQDN binary encoded name as text Ensure that get_dns_name does not cross packet sub boundry From me: Preserve the usage of bootp.fqdn.name as a display filter svn path=/trunk/; revision=25981
2007-04-23Add some GCC warnings to the standard set, and add some others to theGuy Harris1-1/+1
--enable-extra-gcc-checks set. If we turn on -pedantic, try turning on -Wno-long-long as well, so that it's not *so* pedantic that it rejects the 64-bit integral data types that we explicitly require. Constify a bunch of stuff, and make some other changes, to get rid of warnings. Clean up some indentation. svn path=/trunk/; revision=21526
2006-05-21change a whole bunch of ethereal into wiresharkRonnie Sahlberg1-2/+2
svn path=/trunk/; revision=18196
2005-10-08improve get_dns_name now that we have cheap emem allocated buffersRonnie Sahlberg1-1/+1
and get rid of a few strcpy() a whole lot of arrays from the stack and make the function prototype slightly nicer. svn path=/trunk/; revision=16166
2005-06-26Get rid of the private "my_match_strval()" routine in many dissectors;Guy Harris1-1/+1
add a "match_strval_idx()" routine that does the same thing, and have "match_strval()" call it. Make those routines, and "val_to_str()", return a "const" pointer. Update dissectors as necessary to squelch compiler warnings produced by that. Use "val_to_str()" rather than using "match_strval()" and then, if the result is null, substituting a specific string. Clean up some other "match_strval()"/"val_to_str()" usages. Add a null pointer check in the NDPS dissector's "attribute_value()" routine, as it's not clear that "global_attribute_name" won't be null at that point. Make some global variables in the AFS4INT dissector local. Make some routines not used outside the module they're in static. Make some tables "static const". Clean up white space. Fix Gerald's address in some files. svn path=/trunk/; revision=14786
2005-01-02Unlike the detailed description of resource record types, theGuy Harris1-1/+0
detailed description of classes is pretty much redundant - remove it. svn path=/trunk/; revision=12925
2004-12-26From Luis Ontanon: add more filterable fields to DNS, PGM, GTP, and RADIUS.Guy Harris1-4/+1
svn path=/trunk/; revision=12835
2004-07-18Move dissectors to epan/dissectors directory.Gilbert Ramirez1-0/+40
Also move ncp222.py, x11-fields, process-x11-fields.pl, make-reg-dotc, and make-reg-dotc.py. Adjust #include lines in files that include packet-*.h files. svn path=/trunk/; revision=11410