aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dns.c
AgeCommit message (Collapse)AuthorFilesLines
2011-02-23Split get_dns_name() into get_dns_name() and expand_dns_name().Gerald Combs1-4/+15
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
2011-01-14Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().Jeff Morriss1-36/+29
Replace ip6_to_str((tvb_get_ptr(...)) with tvb_ip6_to_str(). There's no need to pass the result of tvb_get_ptr() as the 'value' in proto_tree_add_*(): just use proto_tree_add_item(). Replace some tvb_get_ptr()s with tvb_get_ephemeral_string()s. Replace some memcpy()+tvb_get_ptr() with tvb_memcpy(). svn path=/trunk/; revision=35529
2011-01-07Fix the fuzz failure in ↵Jeff Morriss1-12/+14
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5554 : Don't assume that g_strsplit() found and returned 3 strings. svn path=/trunk/; revision=35418
2011-01-06When showing a DNS query response containing a SRV record, display itemsStephen Fisher1-1/+38
in the tree of the service record broken out. For example, "_ldap._tcp.domain.com" shows: Service: ldap Protocol: tcp Name: domain.com svn path=/trunk/; revision=35401
2011-01-05Reverse r34810 other than the comment because the re-ordering of dns_types[]Stephen Fisher1-9/+5
caused the numbering to no longer be lined up so the "SRV" record (#33) type T_SRV was being given the description "EID" instead of "Service Location" svn path=/trunk/; revision=35367
2010-12-20Rename the routines that handle dissector tables with unsigned integerGuy Harris1-7/+7
keys to have _uint in their names, to match the routines that handle dissector tables with string keys. (Using _port can confuse people into thinking they're intended solely for use with TCP/UDP/etc. ports when, in fact, they work better for things such as Ethernet types, where the binding of particular values to particular protocols are a lot stronger.) svn path=/trunk/; revision=35224
2010-12-18From Daniel Black:Jaap Keuter1-7/+10
Adds support for GOST algorithm as per RFC5933. This is used as an option DNSSEC algorithm. svn path=/trunk/; revision=35217
2010-11-28Make the Primary name element filterable in response records.Jörg Mayer1-6/+12
Same for Nameserver names. svn path=/trunk/; revision=35058
2010-11-08Tweek dns_types.Anders Broman1-5/+10
svn path=/trunk/; revision=34810
2010-09-24(Refining the regexp...) Replace blurbs that match the name (case ↵Jeff Morriss1-3/+3
insensitive) with NULL. svn path=/trunk/; revision=34230
2010-09-23Replace blurbs that match the name (case insensitive) with NULL.Jeff Morriss1-2/+2
svn path=/trunk/; revision=34227
2010-05-21Have abs_time_to_str() and abs_time_to_str_secs() take an additionalGuy Harris1-5/+6
argument indicating whether to include the time zone in the string. If we're constructing a display filter, don't include the time zone, otherwise do. Fixes bug 4756. svn path=/trunk/; revision=32913
2010-05-13As suggested in ↵Jeff Morriss1-18/+9
http://www.wireshark.org/lists/wireshark-dev/200809/msg00075.html (as referenced in https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=2907 ) and https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3411 : Write a new convenience routine for finding a conversation and, if it is not found, create it. The frame number and addresses are taken from pinfo (as is the common case). Use this function in a bunch of dissectors. svn path=/trunk/; revision=32790
2010-04-13From Ivan Sy:Jaap Keuter1-10/+11
Patch allows display of CD (Checking Disable) bit for DNS request and response. Section 3.2.2 of RFC 4035 revised section 6.1 of RFC 2535 for the CD Bit. svn path=/trunk/; revision=32453
2010-04-03Remove unneeded #include <stdio.h>Bill Meier1-1/+0
svn path=/trunk/; revision=32367
2010-03-04From Ivan Sy via bug 4555:Stig Bjørlykke1-0/+4
Added RFC5702 algo for packet-dns. svn path=/trunk/; revision=32114
2010-02-27Add a third date format, ABSOLUTE_TIME_DOY_UTC, to show UTC with theGuy Harris1-5/+5
date as YYYY/DDD, where DDD is a 1-origin day of year. Move the formats to a "time_fmt.h" file, included by the headers that use it. Have abs_time_to_str() and abs_time_secs_to_str() take the date format value, rather than a Boolean "show this as UTC" flag, as an argument. Document the ABSOLUTE_TIME_ formats a bit better. Use that format in the CCSDS and VCDU dissectors, rather than having those dissectors do the formatting themselves. svn path=/trunk/; revision=32034
2010-02-23Fix for bug 4517:Jaap Keuter1-3/+3
DNS response address is also in network order. svn path=/trunk/; revision=31965
2009-12-31From Alex Kirk via bug 4366:Stig Bjørlykke1-2/+6
Add DNS response addresses to tshark fields list. svn path=/trunk/; revision=31394
2009-12-10Add an argument to abs_time_to_str() and abs_time_secs_to_str()Guy Harris1-5/+5
indicating whether the time should be shown as local time or UTC. For now, always pass FALSE, meaning "show as local time". Clean up some stuff in the SNMP dissector, use abs_time_secs_to_str() for times with one-second resolution, and update a comment in various macros in the WSP dissector, while we're at it. svn path=/trunk/; revision=31227
2009-10-25From Jakub Zawadzki:Anders Broman1-8/+3
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 svn path=/trunk/; revision=30691
2009-09-21Add initial support for DNS/SCTP.Michael Tüxen1-5/+24
svn path=/trunk/; revision=30035
2009-08-22From Ivan Sy:Jaap Keuter1-95/+389
NSEC3PARAM RR (RFC 5155), APL RR (RFC 3123), PX RR (RFC 2163), GPOS RR (RFC 1712), NSAP RR (RFC 1706), NSAP-PTR RR (RFC 1348), AFSDB, RP, X25, ISDN, RT, RR (RFC 1183). Also cleanup of protocol tree dependancies. svn path=/trunk/; revision=29506
2009-08-09Don't guard col_clear with col_checkKovarththanan Rajaratnam1-2/+1
svn path=/trunk/; revision=29344
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkKovarththanan Rajaratnam1-8/+4
svn path=/trunk/; revision=29340
2009-08-05From Ivan Sy:Jaap Keuter1-1/+21
Add support for Support for DHCID RR (RFC 4701). svn path=/trunk/; revision=29305
2009-08-03Thou shalt terminate thy value_string arrays with {0, NULL}.Guy Harris1-1/+2
svn path=/trunk/; revision=29279
2009-08-03From Ivan Sy:Jaap Keuter1-4/+86
Support for Host Identity Protocol (HIP) Domain Name System (DNS) Extension. svn path=/trunk/; revision=29277
2009-07-31From Ivan Sy via bug 3797:Gerald Combs1-0/+3
Support for SPF RR (RFC 4408) - this has the same format as TXT RR (see section 3.1.1) below. Currently wireshark 1.2.1 shows this as Unknown type 99 svn path=/trunk/; revision=29253
2009-07-31From Ivan Sy:Jaap Keuter1-2/+60
Add support for SSHFP RR (RFC 4255). svn path=/trunk/; revision=29252
2009-07-31From Ivan Sy:Jaap Keuter1-5/+5
NAPTR RR (RFC 3403) replacement MUST be a fully qualified domain-name. svn path=/trunk/; revision=29250
2009-07-29From Ivan Sy:Jaap Keuter1-0/+12
Support for DLV RR (RFC 4431) and SHA-256 Digest for DS RR (RFC 4509). svn path=/trunk/; revision=29226
2009-07-07From Kovarththanan Rajaratnam:Stig Bjørlykke1-2/+2
More FT_XXX cleanup. svn path=/trunk/; revision=28971
2009-06-18From Kovarththanan Rajaratnam via bug 3548:Stig Bjørlykke1-12/+12
(1) Trailing/leading spaces are removed from 'name's/'blurb's (2) Duplicate 'blurb's are replaced with NULL (3) Empty ("") 'blurb's are replaced with NULL (4) BASE_NONE, NULL, 0x0 are used for 'display', 'strings' and 'bitmask' fields for FT_NONE, FT_BYTES, FT_IPv4, FT_IPv6, FT_ABSOLUTE_TIME, FT_RELATIVE_TIME, FT_PROTOCOL, FT_STRING and FT_STRINGZ field types (5) Only allow non-zero value for 'display' if 'bitmask' is non-zero svn path=/trunk/; revision=28770
2009-04-14ep_strbuf usage: ep_strbuf_new_label("") --> ep_strbuf_new_label(NULL);Bill Meier1-1/+1
ep_strbuf_append() --> ep_strbuf_append_c() in a few cases. svn path=/trunk/; revision=28052
2009-03-30Fixup whitespace.Gerald Combs1-25/+25
svn path=/trunk/; revision=27900
2009-03-30Replace another string pointer dance with a string buffer.Gerald Combs1-18/+9
svn path=/trunk/; revision=27895
2009-03-23Fixed some data types to remove some warnings in the solaris build.Stig Bjørlykke1-28/+27
svn path=/trunk/; revision=27825
2009-02-11Added support for LLMNR.Stig Bjørlykke1-20/+88
svn path=/trunk/; revision=27425
2008-12-18Fix various typos and spelling errors (mostly in text strings)Bill Meier1-1/+1
svn path=/trunk/; revision=27050
2008-12-18From Richard Brodie:Jaap Keuter1-47/+152
DNSSEC RFC 5155 support patch svn path=/trunk/; revision=27048
2008-10-31Fix some "format not a string literal and no format arguments" warnings.Stig Bjørlykke1-4/+4
svn path=/trunk/; revision=26646
2008-09-29From Derek Morr:Jaap Keuter1-12/+57
The DNS dissector conflates KEY (used for TSIG) and DNSKEY records. Also, the DNSKEY dissector doesn't parse the REVOKED flag, defined in RFC 5011. The attached patch splits KEY and DNSKEY parsing, and adds support for REVOKED. svn path=/trunk/; revision=26298
2008-08-11From Roy Marples (bug 2781 and bug 2796):Stig Bjørlykke1-20/+41
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
2008-06-27Fix some warnings reported by gcc -Wshadow ... Bill Meier1-8/+8
Fix some spacing in packet-dcom.c svn path=/trunk/; revision=25618
2008-02-07Removed even more "statement not reached" warnings.Stig Bjørlykke1-2/+0
svn path=/trunk/; revision=24286
2007-06-22dns request/response tracking did not work if tree==NULL we didnt set up Ronnie Sahlberg1-107/+108
the tracking structures this makes dns request/response trackign work when you dont have any color filters svn path=/trunk/; revision=22163
2007-04-23Add some GCC warnings to the standard set, and add some others to theGuy Harris1-23/+24
--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
2007-03-28Remove almost all of the casts I committed recently and in place ofStephen Fisher1-20/+20
them, add -Wno-pointer-sign to CFLAGS when gcc will accept it. svn path=/trunk/; revision=21253
2007-03-27Fix about 100 simple to fix warnings from gcc 4.0 in epan/dissectors Stephen Fisher1-20/+20
svn path=/trunk/; revision=21233