diff options
author | Erika Szelleova <szelleerika@gmail.com> | 2018-06-18 19:23:32 +0200 |
---|---|---|
committer | Anders Broman <a.broman58@gmail.com> | 2018-06-19 08:40:45 +0000 |
commit | 31c1cd95cfce27a12f364eb3de78efd2b0c6d1b8 (patch) | |
tree | 386539bf41ba873de1924232de5d7493cf82dbcf /epan/dissectors/packet-dns.h | |
parent | bf829007b4235be1b5144c40c8f7189064f4d44a (diff) |
DNS: changed maximum length of dns names from 1025 to 255
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>
Diffstat (limited to 'epan/dissectors/packet-dns.h')
-rw-r--r-- | epan/dissectors/packet-dns.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-dns.h b/epan/dissectors/packet-dns.h index bb05273928..e0ea8c0897 100644 --- a/epan/dissectors/packet-dns.h +++ b/epan/dissectors/packet-dns.h @@ -18,6 +18,6 @@ extern const value_string dns_classes[]; /* Just like expand_dns_name, but pretty-prints empty names. */ int get_dns_name(tvbuff_t *, int, int, int, const guchar **, guint*); -#define MAXDNAME 1025 /* maximum domain name length */ +#define MAX_DNAME_LEN 255 /* maximum domain name length */ #endif /* packet-dns.h */ |