diff options
| author | 2020-02-25 12:37:14 +0000 | |
|---|---|---|
| committer | 2020-02-25 12:37:14 +0000 | |
| commit | a6fa6f7a56e6e17d921551d71566ace70b27172d (patch) | |
| tree | 584ca7f172447db5e71477b13286b51ccaf18195 /usr.bin/dig/lib/dns/gen.c | |
| parent | Prevent buffer overflows by not assuming the report length, given by (diff) | |
| download | wireguard-openbsd-a6fa6f7a56e6e17d921551d71566ace70b27172d.tar.xz wireguard-openbsd-a6fa6f7a56e6e17d921551d71566ace70b27172d.zip | |
Do not generate dns_rdatatype_attributes and dns_rdatatype_totext.
OK jung
Diffstat (limited to 'usr.bin/dig/lib/dns/gen.c')
| -rw-r--r-- | usr.bin/dig/lib/dns/gen.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/usr.bin/dig/lib/dns/gen.c b/usr.bin/dig/lib/dns/gen.c index f3524528be1..c0e8a55df1a 100644 --- a/usr.bin/dig/lib/dns/gen.c +++ b/usr.bin/dig/lib/dns/gen.c @@ -692,37 +692,6 @@ main(int argc, char **argv) { } fprintf(stdout, "\t}\n"); - fprintf(stdout, "#define RDATATYPE_ATTRIBUTE_SW \\\n"); - fprintf(stdout, "\tswitch (type) { \\\n"); - for (i = 0; i <= maxtype; i++) { - ttn = find_typename(i); - if (ttn == NULL) - continue; - fprintf(stdout, "\tcase %d: return (%s); \\\n", - i, upper(ttn->attr)); - } - fprintf(stdout, "\t}\n"); - - fprintf(stdout, "#define RDATATYPE_TOTEXT_SW \\\n"); - fprintf(stdout, "\tswitch (type) { \\\n"); - for (i = 0; i <= maxtype; i++) { - ttn = find_typename(i); - if (ttn == NULL) - continue; - /* - * Remove KEYDATA (65533) from the type to memonic - * translation as it is internal use only. This - * stops the tools from displaying KEYDATA instead - * of TYPE65533. - */ - if (i == 65533U) - continue; - fprintf(stdout, "\tcase %d: return " - "(str_totext(\"%s\", target)); \\\n", - i, upper(ttn->typename)); - } - fprintf(stdout, "\t}\n"); - fputs("#endif /* DNS_CODE_H */\n", stdout); } else if (type_enum) { char *s; |
