Commit graph

153 commits

Author SHA1 Message Date
Michael Mann
8da89ad091 Adjust when name_len offset is used. Part of bug 8776 (https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8776)
From Dario Lombardo

svn path=/trunk/; revision=50169
2013-06-26 14:09:10 +00:00
Evan Huus
451e4b878b Convert DNS dissector to wmem, including first actual usage of wmem's red-black
tree.

svn path=/trunk/; revision=50041
2013-06-19 17:40:33 +00:00
Michael Mann
f42e5bc9c0 Remove check_col() and the occasional tree.
This leaves just the Pidl dissectors remaining for removal of check_col() in the dissectors directory.  A small handful of check_col() calls remain outside of the dissectors.

svn path=/trunk/; revision=49941
2013-06-14 19:46:54 +00:00
Evan Huus
bd62949918 Convince the compiler that a DNS name won't be longer than 2^32 characters,
even on 64-bit systems.

svn path=/trunk/; revision=49858
2013-06-09 14:02:22 +00:00
Evan Huus
edd3dfd6f8 From Dario Lombardo via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8776
Two new DNS tree items: dns.count.labels and dns.qry.name.len.

svn path=/trunk/; revision=49856
2013-06-09 13:32:03 +00:00
Alexis La Goutte
7397620985 Enhance CERT DNS Type
svn path=/trunk/; revision=49720
2013-06-03 13:11:12 +00:00
Alexis La Goutte
c2657de3e9 Enhance KX DNS Type
(and fix a minor bug.. KX Preference is always = 0...)

svn path=/trunk/; revision=49719
2013-06-03 13:11:02 +00:00
Alexis La Goutte
8d26213a1f Enhance NXT DNS Type
svn path=/trunk/; revision=49718
2013-06-03 13:10:53 +00:00
Alexis La Goutte
86dee256ab Enhance NSEC DNS Type
svn path=/trunk/; revision=49717
2013-06-03 13:10:39 +00:00
Alexis La Goutte
3aa62793e8 Enhance LOC DNS Type
svn path=/trunk/; revision=49716
2013-06-03 13:10:31 +00:00
Alexis La Goutte
a02411f679 Enhance DNAME DNS Type
svn path=/trunk/; revision=49715
2013-06-03 13:10:22 +00:00
Alexis La Goutte
aceab71d28 Enhance A6 DNS Type
svn path=/trunk/; revision=49714
2013-06-03 13:10:12 +00:00
Alexis La Goutte
ddf5186981 Enhance AAAA DNS Type
svn path=/trunk/; revision=49713
2013-06-03 13:10:02 +00:00
Alexis La Goutte
7e11edaa43 Enhance IPSECKEY DNS Type
svn path=/trunk/; revision=49712
2013-06-03 13:09:53 +00:00
Alexis La Goutte
87a5f44fa4 Enhance KEY Type
svn path=/trunk/; revision=49711
2013-06-03 13:09:43 +00:00
Michael Mann
7e8e5b347e Batch of filterable expert_infos.
svn path=/trunk/; revision=49581
2013-05-25 17:06:40 +00:00
Alexis La Goutte
cf0a2c952e Remove expert info for bit AD in DNS query
See Section 5.7 (Setting the AD Bit on Queries) of RFC 6840 (Clarifications and Implementation Notes for DNS Security (DNSSEC))

The semantics of the Authentic Data (AD) bit in the query were
previously undefined.  Section 4.6 of [RFC4035] instructed resolvers
to always clear the AD bit when composing queries.

This document defines setting the AD bit in a query as a signal
indicating that the requester understands and is interested in the
value of the AD bit in the response. This allows a requester to
indicate that it understands the AD bit without also requesting
DNSSEC data via the DO bit.

svn path=/trunk/; revision=48942
2013-04-20 09:49:12 +00:00
Anders Broman
6bde918078 From beroset:
remove C++ incompatibilities 
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=8416

svn path=/trunk/; revision=48426
2013-03-19 20:00:52 +00:00
Anders Broman
263a9d0683 [-Wmissing-prototypes]
Use explicit casts.

svn path=/trunk/; revision=48341
2013-03-16 16:25:41 +00:00
Guy Harris
8ed7a73e22 Fix a bunch of warnings.
Cast away some implicit 64-bit-to-32-bit conversion errors due to use of
sizeof.

Cast away some implicit 64-bit-to-32-bit conversion errors due to use of
strtol() and strtoul().

Change some data types to avoid those implicit conversion warnings.

When assigning a constant to a float, make sure the constant isn't a
double, by appending "f" to the constant.

Constify a bunch of variables, parameters, and return values to
eliminate warnings due to strings being given const qualifiers.  Cast
away those warnings in some cases where an API we don't control forces
us to do so.

Enable a bunch of additional warnings by default.  Note why at least
some of the other warnings aren't enabled.

randpkt.c and text2pcap.c are used to build programs, so they don't need
to be in EXTRA_DIST.

If the user specifies --enable-warnings-as-errors, add -Werror *even if
the user specified --enable-extra-gcc-flags; assume they know what
they're doing and are willing to have the compile fail due to the extra
GCC warnings being treated as errors.

svn path=/trunk/; revision=46748
2012-12-26 05:57:06 +00:00
Michael Mann
65ef9e9d6b replaced decode_numeric_bitfield calls with filterable item or removed it if it didn't mathematically do anything.
svn path=/trunk/; revision=45166
2012-09-27 04:36:40 +00:00
Michael Mann
97c808c75c replaced decode_boolean_bitfield calls with itemized filters
svn path=/trunk/; revision=45152
2012-09-26 18:10:29 +00:00
Jeff Morriss
2552c750e5 We always HAVE_CONFIG_H so don't bother checking whether we have it or not.
svn path=/trunk/; revision=45017
2012-09-20 02:03:38 +00:00
Alexis La Goutte
31c1f7d11d From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7709
Enhance DNS Dissector

Enhance DNS : make DNSKEY type filterable

svn path=/trunk/; revision=44945
2012-09-17 15:19:18 +00:00
Alexis La Goutte
e057832c84 From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7709
Enhance DNS Dissector

Enhance DNS : make RRSIG type filterable

svn path=/trunk/; revision=44944
2012-09-17 15:18:54 +00:00
Alexis La Goutte
0002fd11b5 From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7709
Enhance DNS Dissector

Enhance DNS : make TXT, SPF type filterable

svn path=/trunk/; revision=44943
2012-09-17 15:18:32 +00:00
Alexis La Goutte
9e5e7b75df From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7709
Enhance DNS Dissector

Enhance DNS : make MX filtereable

svn path=/trunk/; revision=44942
2012-09-17 15:17:48 +00:00
Alexis La Goutte
c5826e292a From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7709
Enhance DNS Dissector

Enhance DNS : make HINFO filtereable

svn path=/trunk/; revision=44941
2012-09-17 15:16:34 +00:00
Evan Huus
5a7af5d6d9 Avoid a stack-smash when decoding the new DNS option field if the length is
malformed.

Fixes https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7730

svn path=/trunk/; revision=44915
2012-09-15 13:49:27 +00:00
Alexis La Goutte
0157f2f5e7 From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7709
Enhance DNS Dissector

Make WKS Type filterable

svn path=/trunk/; revision=44849
2012-09-10 15:54:21 +00:00
Alexis La Goutte
0cede7b727 From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7709
Enhance DNS Dissector

Make PTR Type filterable

svn path=/trunk/; revision=44848
2012-09-10 15:52:37 +00:00
Alexis La Goutte
a11cd0e674 From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7709
Enhance DNS Dissector

Make SOA Type filterable

svn path=/trunk/; revision=44847
2012-09-10 15:52:00 +00:00
Alexis La Goutte
e486f63a47 From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7709
Enhance DNS Dissector

Fix indent (remove tabs)

svn path=/trunk/; revision=44830
2012-09-10 09:15:33 +00:00
Alexis La Goutte
5d7c6dc0da From me via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7709
Enhance DNS Dissector

Add new DNS type : TLSA/DANE (52) RFC6698
The DNS-Based Authentication of Named Entities (DANE) Transport Layer Security (TLS) Protocol: TLSA

svn path=/trunk/; revision=44829
2012-09-10 09:14:53 +00:00
Alexis La Goutte
3ccb64d490 Add modelines for DNS dissector
svn path=/trunk/; revision=44767
2012-09-04 08:19:08 +00:00
Pascal Quantin
fc83e532db Display hf_dns_rr_opt_client_addr as FT_BYTES
svn path=/trunk/; revision=44704
2012-08-30 19:13:38 +00:00
Alexis La Goutte
a09f80e8be From David Drysdale via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7552
Add support for EDNS0 option from draft-vandergaast-edns-client-subnet-01

From me
* use/prefer proto_tree_add_item
* use switch() for optcode (may be there is other optcode later...)

svn path=/trunk/; revision=44702
2012-08-30 17:03:50 +00:00
Alexis La Goutte
6141467fc0 From David Drysdale via https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7551
Add dissection of sub-options in DNS OPT RRs (RFC 2671)

From me
* use/prefer proto_tree_add_item
* Remove dns_optcode_description function (Use value_string...)

svn path=/trunk/; revision=44383
2012-08-09 15:15:24 +00:00
Jaap Keuter
3a14c113bc Fix for bug 7555:
Add an expert item on the AD bit in a DNS query.
Also add some type values.

svn path=/trunk/; revision=44287
2012-08-06 21:45:43 +00:00
Anders Broman
91763a17be From Johan Wåhl:
Make DNS ports configurable.

svn path=/trunk/; revision=43984
2012-07-25 09:40:18 +00:00
Pascal Quantin
c0a5bc9aa8 Fix copy/paste error
svn path=/trunk/; revision=43775
2012-07-17 21:36:34 +00:00
Jörg Mayer
c8579ac82c - Make dns srv elemnts filterable (were: text only)
- Don't suppress first character in srv service and protocol
  as some services don't use _ as first character

svn path=/trunk/; revision=43774
2012-07-17 21:10:02 +00:00
Bill Meier
557ed5e971 Minor: reformatting, unneeded #includes, whitespace cleanup;
Also: use val_to_str_const(0 instead of val_to_str() in a few cases.

svn path=/trunk/; revision=42271
2012-04-26 16:47:37 +00:00
Alexis La Goutte
323dd70e2b Update Domain Name System Security (DNSSEC) Algorithm Numbers and Delegation Signer (DS) Resource Record (RR)
Add RFC5933 : Use of GOST Signature Algorithms in DNSKEY and RRSIG Resource Records for DNSSEC
 Add RFC6605 : Elliptic Curve Digital Signature Algorithm (DSA) for DNSSEC

svn path=/trunk/; revision=42124
2012-04-18 07:33:57 +00:00
pascal
8391900c9e From Bertho Stultiens:
Use certificate values from RFC 4398
From me: rename fields according to RFC and update references to RFC
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7130

svn path=/trunk/; revision=42108
2012-04-17 12:44:04 +00:00
Anders Broman
fc41d4ad51 From Evan Huus:
Duplicate and misplaced 'break' statements.

https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7106

svn path=/trunk/; revision=42091
2012-04-16 08:39:34 +00:00
pascal
afd3998b98 Fix https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=7045 :
use right bitmask to get the Z reserved bits

svn path=/trunk/; revision=41985
2012-04-08 17:17:07 +00:00
Alexis La Goutte
f5459b81de Fix some Dead Store (Dead assignement/Dead increment) Warning found by Clang
svn path=/trunk/; revision=40887
2012-02-06 22:01:04 +00:00
Alexis La Goutte
4be80f7147 Enhance DNS Dissector (use WS function...)
svn path=/trunk/; revision=40886
2012-02-06 21:59:53 +00:00
Alexis La Goutte
5a6adc8c17 From https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6704
DNS KEY RDATA contains an extra "Key id" field

Set Key Id is a generated item (in KEY and DNSKEY dns types)

svn path=/trunk/; revision=40877
2012-02-06 16:36:20 +00:00