aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dns.c
AgeCommit message (Collapse)AuthorFilesLines
2011-11-20Get rid of Warnings.etxrab1-33/+33
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39957 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-16Do some conversions of proto_tree_add_item() 'encoding' arg.wmeier1-2/+2
(previously missed). 57 FT_BOOLEAN: FALSE-->ENC_BIG_ENDIAN 31 FT_BOOLEAN: TRUE-->ENC_LITTLE_ENDIAN 10 FT_BYTES: ENC_BIG_ENDIAN-->ENC_NA 1 FT_BYTES: ENC_LITTLE_ENDIAN-->ENC_NA 21 FT_BYTES: FALSE-->ENC_NA 2 FT_BYTES: TRUE-->ENC_NA 2 FT_IPXNET: ENC_BIG_ENDIAN-->ENC_NA 6 FT_IPv6: ENC_BIG_ENDIAN-->ENC_NA 1 FT_IPv6: FALSE-->ENC_NA 6 FT_NONE: ENC_BIG_ENDIAN-->ENC_NA 19 FT_NONE: FALSE-->ENC_NA 3 FT_NONE: TRUE-->ENC_NA 1 FT_STRING: ENC_BIG_ENDIAN-->ENC_ASCII|ENC_NA 1 FT_STRING: ENC_LITTLE_ENDIAN-->ENC_ASCII|ENC_NA 5 FT_STRING: FALSE-->ENC_ASCII|ENC_NA 1 FT_STRING: TRUE-->ENC_ASCII|ENC_NA 4 FT_STRINGZ: ENC_NA-->ENC_ASCII|ENC_NA 8 FT_STRINGZ: FALSE-->ENC_ASCII|ENC_NA 1 FT_INT32: FALSE-->ENC_BIG_ENDIAN 1 FT_INT32: TRUE-->ENC_LITTLE_ENDIAN 11 FT_UINT8: 0-->ENC_BIG_ENDIAN 111 FT_UINT8: FALSE-->ENC_BIG_ENDIAN 17 FT_UINT8: TRUE-->ENC_LITTLE_ENDIAN 1 FT_UINT16: 0-->ENC_BIG_ENDIAN 68 FT_UINT16: FALSE-->ENC_BIG_ENDIAN 18 FT_UINT16: TRUE-->ENC_LITTLE_ENDIAN 4 FT_UINT24: FALSE-->ENC_BIG_ENDIAN 70 FT_UINT32: FALSE-->ENC_BIG_ENDIAN 1 FT_UINT32: TRUE-->ENC_LITTLE_ENDIAN 4 FT_UINT64: FALSE-->ENC_BIG_ENDIAN 1 FT_UINT64: TRUE-->ENC_LITTLE_ENDIAN 1 FT_UINT_STRING: FALSE-->ENC_ASCII|ENC_BIG_ENDIAN git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39442 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-10 Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-14/+14
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_BOOLEAN FT_IPv4 FT_EUI64 FT_GUID FT_UINT_STRING Also: For type FT_ITv6 use ENC_NA. (This was missed in SVN #39260) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39328 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-06Convert 'encoding' parameter of certain proto_tree_add_item() calls in ↵wmeier1-18/+18
non-autogenerated epan/dissectors: Specifically: Replace FALSE|0 and TRUE|1 by ENC_BIG_ENDIAN|ENC_LITTLE_ENDIAN as the encoding parameter for proto_tree_add_item() calls which directly reference an item in hf[] which has a type of: FT_UINT8 FT_UINT16 FT_UINT24 FT_UINT32 FT_UINT64 FT_INT8 FT_INT16 FT_INT24 FT_INT32 FT_INT64 FT_FLOAT FT_DOUBLE git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39288 f5534014-38df-0310-8fa8-9805f1628bb7
2011-10-04Use ENC_NA as encoding for proto_tree_add_item() calls which directly ↵wmeier1-10/+10
reference an hf item (in hf[] with types: FT_NONE FT_BYTES FT_IPV6 FT_IPXNET FT_OID Note: Encoding field set to ENC_NA only if the field was previously TRUE|FALSE|ENC_LITTLE_ENDIAN|ENC_BIG_ENDIAN git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@39260 f5534014-38df-0310-8fa8-9805f1628bb7
2011-06-02Add Id to info column. Makes detecting duplicates andjmayer1-2/+3
matching answers so much easier. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37518 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-12Use rcode instead of repeated uses of "flags & F_RCODE". One change submittedcmaynard1-3/+3
from Yaniv Kaul via bug 5858; the other 2 from me. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@37097 f5534014-38df-0310-8fa8-9805f1628bb7
2011-05-04Cleanup: replace sizeof(arr)/sizeof(arr[0]) with shorter array_length(arr)darkjames1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36986 f5534014-38df-0310-8fa8-9805f1628bb7
2011-04-19From Michael Mann via bug 2794:stig1-1/+1
Fixed display filters with obvious typos. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36713 f5534014-38df-0310-8fa8-9805f1628bb7
2011-03-27Add the IPv4 address, not the first 4 bytes of its name, to thegerald1-1/+1
resolution table. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36370 f5534014-38df-0310-8fa8-9805f1628bb7
2011-02-23Split get_dns_name() into get_dns_name() and expand_dns_name().gerald1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36029 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-14Replace ip_to_str((tvb_get_ptr(...)) with tvb_ip_to_str().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(). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35529 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-07Fix the fuzz failure in ↵morriss1-12/+14
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=5554 : Don't assume that g_strsplit() found and returned 3 strings. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35418 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-06When showing a DNS query response containing a SRV record, display itemssfisher1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35401 f5534014-38df-0310-8fa8-9805f1628bb7
2011-01-05Reverse r34810 other than the comment because the re-ordering of dns_types[]sfisher1-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" git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35367 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-20Rename the routines that handle dissector tables with unsigned integerguy1-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.) git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35224 f5534014-38df-0310-8fa8-9805f1628bb7
2010-12-18From Daniel Black:jake1-7/+10
Adds support for GOST algorithm as per RFC5933. This is used as an option DNSSEC algorithm. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35217 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-28Make the Primary name element filterable in response records.jmayer1-6/+12
Same for Nameserver names. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@35058 f5534014-38df-0310-8fa8-9805f1628bb7
2010-11-08Tweek dns_types.etxrab1-5/+10
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34810 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-24(Refining the regexp...) Replace blurbs that match the name (case ↵morriss1-3/+3
insensitive) with NULL. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34230 f5534014-38df-0310-8fa8-9805f1628bb7
2010-09-23Replace blurbs that match the name (case insensitive) with NULL.morriss1-2/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34227 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-21Have abs_time_to_str() and abs_time_to_str_secs() take an additionalguy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32913 f5534014-38df-0310-8fa8-9805f1628bb7
2010-05-13As suggested in ↵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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32790 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-13From Ivan Sy:jake1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32453 f5534014-38df-0310-8fa8-9805f1628bb7
2010-04-03Remove unneeded #include <stdio.h>wmeier1-1/+0
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32367 f5534014-38df-0310-8fa8-9805f1628bb7
2010-03-04From Ivan Sy via bug 4555:stig1-0/+4
Added RFC5702 algo for packet-dns. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32114 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-28Added svn:ignore targets.stig1-5/+5
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@32055 f5534014-38df-0310-8fa8-9805f1628bb7
2010-02-23Fix for bug 4517:jake1-3/+3
DNS response address is also in network order. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31965 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-31From Alex Kirk via bug 4366:stig1-2/+6
Add DNS response addresses to tshark fields list. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31394 f5534014-38df-0310-8fa8-9805f1628bb7
2009-12-10Add an argument to abs_time_to_str() and abs_time_secs_to_str()guy1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@31227 f5534014-38df-0310-8fa8-9805f1628bb7
2009-10-25From Jakub Zawadzki:etxrab1-8/+3
Cleanup dissector code - use proper memory functions. https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=4164 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30691 f5534014-38df-0310-8fa8-9805f1628bb7
2009-09-21Add initial support for DNS/SCTP.tuexen1-5/+24
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@30035 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-22From Ivan Sy:jake1-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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29506 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_clear with col_checkkrj1-2/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29344 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-09Don't guard col_set_str (COL_PROTOCOL) with col_checkkrj1-8/+4
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29340 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-05From Ivan Sy:jake1-1/+21
Add support for Support for DHCID RR (RFC 4701). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29305 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-03Thou shalt terminate thy value_string arrays with {0, NULL}.guy1-1/+2
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29279 f5534014-38df-0310-8fa8-9805f1628bb7
2009-08-03From Ivan Sy:jake1-4/+86
Support for Host Identity Protocol (HIP) Domain Name System (DNS) Extension. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29277 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-31From Ivan Sy via bug 3797:gerald1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29253 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-31From Ivan Sy:jake1-2/+60
Add support for SSHFP RR (RFC 4255). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29252 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-31From Ivan Sy:jake1-5/+5
NAPTR RR (RFC 3403) replacement MUST be a fully qualified domain-name. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29250 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-29From Ivan Sy:jake1-0/+12
Support for DLV RR (RFC 4431) and SHA-256 Digest for DS RR (RFC 4509). git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@29226 f5534014-38df-0310-8fa8-9805f1628bb7
2009-07-07From Kovarththanan Rajaratnam:stig1-2/+2
More FT_XXX cleanup. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28971 f5534014-38df-0310-8fa8-9805f1628bb7
2009-06-18From Kovarththanan Rajaratnam via bug 3548:stig1-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 git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28770 f5534014-38df-0310-8fa8-9805f1628bb7
2009-04-14ep_strbuf usage: ep_strbuf_new_label("") --> ep_strbuf_new_label(NULL);wmeier1-1/+1
ep_strbuf_append() --> ep_strbuf_append_c() in a few cases. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@28052 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-30Fixup whitespace.gerald1-25/+25
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27900 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-30Replace another string pointer dance with a string buffer.gerald1-18/+9
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27895 f5534014-38df-0310-8fa8-9805f1628bb7
2009-03-23Fixed some data types to remove some warnings in the solaris build.stig1-28/+27
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27825 f5534014-38df-0310-8fa8-9805f1628bb7
2009-02-11Added support for LLMNR.stig1-20/+88
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27425 f5534014-38df-0310-8fa8-9805f1628bb7
2008-12-18Fix various typos and spelling errors (mostly in text strings)wmeier1-1/+1
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@27050 f5534014-38df-0310-8fa8-9805f1628bb7