aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-dns.c
diff options
context:
space:
mode:
authorAlexis La Goutte <alexis.lagoutte@gmail.com>2013-09-03 06:36:23 +0000
committerAlexis La Goutte <alexis.lagoutte@gmail.com>2013-09-03 06:36:23 +0000
commit29d07267df2e5362833f966a58b1a0174f67f212 (patch)
treedaff3688a190032ee211ad2b7f6367a22081dc7d /epan/dissectors/packet-dns.c
parent3f3a394932717f68dba6aa4b023bd1b1859b0d36 (diff)
Add dissection of EUI Family (draft-jabley-dnsext-eui48-eui64-rrtypes) DNS Rcode (EUI48, EUI64)
svn path=/trunk/; revision=51715
Diffstat (limited to 'epan/dissectors/packet-dns.c')
-rw-r--r--epan/dissectors/packet-dns.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/epan/dissectors/packet-dns.c b/epan/dissectors/packet-dns.c
index 3fb649bc68..31dfebac84 100644
--- a/epan/dissectors/packet-dns.c
+++ b/epan/dissectors/packet-dns.c
@@ -149,6 +149,8 @@ static int hf_dns_ilnp_locator64_preference = -1;
static int hf_dns_ilnp_locator64 = -1;
static int hf_dns_ilnp_locatorfqdn_preference = -1;
static int hf_dns_ilnp_locatorfqdn = -1;
+static int hf_dns_eui48 = -1;
+static int hf_dns_eui64 = -1;
static int hf_dns_rrsig_type_covered = -1;
static int hf_dns_rrsig_algorithm = -1;
static int hf_dns_rrsig_labels = -1;
@@ -3303,6 +3305,26 @@ dissect_dns_answer(tvbuff_t *tvb, int offsetx, int dns_data_offset,
break;
+ case T_EUI48: /* EUI48 (108) */
+ {
+
+ proto_tree_add_item(rr_tree, hf_dns_eui48, tvb, cur_offset, 6, ENC_NA);
+ /*cur_offset += 6;*/
+
+ }
+ break;
+
+
+ case T_EUI64: /* EUI64 (109) */
+ {
+
+ proto_tree_add_item(rr_tree, hf_dns_eui64, tvb, cur_offset, 8, ENC_NA);
+ /*cur_offset += 6;*/
+
+ }
+ break;
+
+
case T_TKEY: /* Transaction Key (249) */
{
const guchar *tkey_algname;
@@ -4552,6 +4574,16 @@ proto_register_dns(void)
FT_STRING, BASE_NONE, NULL, 0x0,
NULL, HFILL }},
+ { &hf_dns_eui48,
+ { "EUI48 Address", "dns.eui48",
+ FT_ETHER, BASE_NONE, NULL, 0x0,
+ NULL, HFILL }},
+
+ { &hf_dns_eui64,
+ { "EUI48 Address", "dns.eui48",
+ FT_EUI64, BASE_NONE, NULL, 0x0,
+ NULL, HFILL }},
+
{ &hf_dns_rrsig_type_covered,
{ "Type Covered", "dns.rrsig.type_covered",
FT_UINT16, BASE_DEC|BASE_EXT_STRING, &dns_types_description_vals_ext, 0x0,