Permalink
Browse files

Remove support for ISDN, MD, MF, PX, WKS and X25 records

  • Loading branch information...
1 parent c3ce484 commit b8b98598af0fc9d2ba336242890ca622ad1bbb39 @andrewtj andrewtj committed Mar 3, 2012
Showing with 10 additions and 105 deletions.
  1. +0 −6 include/dns_records.hrl
  2. +1 −3 include/dns_tests.hrl
  3. +8 −8 priv/rrdata_wire_samples.txt
  4. +1 −60 src/dns.erl
  5. +0 −20 src/dns_record_info.erl
  6. +0 −8 src/dnssec.erl
@@ -46,13 +46,10 @@
gateway_type,
gateway,
public_key}).
--record(dns_rrdata_isdn, {address, subaddress}).
-record(dns_rrdata_key, {type, xt, name_type, sig, protocol, alg, public_key}).
-record(dns_rrdata_kx, {preference, exchange}).
-record(dns_rrdata_loc, {size, horiz, vert, lat, lon, alt}).
-record(dns_rrdata_mb, {madname}).
--record(dns_rrdata_md, {madname}).
--record(dns_rrdata_mf, {madname}).
-record(dns_rrdata_mg, {madname}).
-record(dns_rrdata_minfo, {rmailbx, emailbx}).
-record(dns_rrdata_mr, {newname}).
@@ -69,7 +66,6 @@
-record(dns_rrdata_nsec3param, {hash_alg, flags, iterations, salt}).
-record(dns_rrdata_nxt, {dname, types}).
-record(dns_rrdata_ptr, {dname}).
--record(dns_rrdata_px, {preference, map822, mapx400}).
-record(dns_rrdata_rp, {mbox, txt}).
-record(dns_rrdata_rrsig, {type_covered,
alg,
@@ -93,8 +89,6 @@
-record(dns_rrdata_sshfp, {alg, fp_type, fp}).
-record(dns_rrdata_tsig, {alg, time, fudge, mac, msgid, err, other}).
-record(dns_rrdata_txt, {txt}).
--record(dns_rrdata_wks, {address, protocol, bitmap}).
--record(dns_rrdata_x25, {psdn_address}).
-record(dns_optrr, {udp_payload_size = 4096,
ext_rcode = ?DNS_ERCODE_NOERROR,
@@ -187,12 +187,10 @@ decode_encode_rrdata_wire_samples_test_() ->
decode_encode_rrdata_test_() ->
%% For testing records that don't have wire samples
Cases = [ {?DNS_TYPE_MB, #dns_rrdata_mb{madname = <<"example.com">>}},
- {?DNS_TYPE_MD, #dns_rrdata_md{madname = <<"example.com">>}},
- {?DNS_TYPE_MF, #dns_rrdata_mf{madname = <<"example.com">>}},
{?DNS_TYPE_MG, #dns_rrdata_mg{madname = <<"example.com">>}},
{?DNS_TYPE_MINFO, #dns_rrdata_minfo{rmailbx = <<"a.b">>,
emailbx = <<"c.d">>}},
- {in, mr, #dns_rrdata_mr{newname = <<"example.com">>}} ],
+ {?DNS_TYPE_MR, #dns_rrdata_mr{newname = <<"example.com">>}} ],
[ ?_test(
begin
{Encoded, _NewCompMap} = encode_rrdata(0, ?DNS_CLASS_IN, Data,
Oops, something went wrong.

0 comments on commit b8b9859

Please sign in to comment.