chiark
/
gitweb
/
~mdw
/
adns
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
unknown rr types seem to work
[adns]
/
client
/
adh-main.c
diff --git
a/client/adh-main.c
b/client/adh-main.c
index 7065d58ecd53bd2afd82a7497d52cb2ad95296a4..49df6f52072e00ac7c054eb74755f9faef50c5bc 100644
(file)
--- a/
client/adh-main.c
+++ b/
client/adh-main.c
@@
-111,6
+111,14
@@
void of_type(const struct optioninfo *oi, const char *arg, const char *arg2) {
};
const struct typename *tnp;
};
const struct typename *tnp;
+ unsigned long unknowntype;
+ char *ep;
+
+ if (strlen(arg) > 4 && !memcmp(arg,"type",4) &&
+ (unknowntype= strtoul(arg+4, &ep, 10), !*ep) && unknowntype < 65536) {
+ ov_type= unknowntype | adns_r_unknown;
+ return;
+ }
for (tnp=typenames;
tnp->type && strcmp(arg,tnp->desc);
for (tnp=typenames;
tnp->type && strcmp(arg,tnp->desc);