]> The Tcpdump Group git mirrors - tcpdump/blobdiff - print-domain.c
Use nd_ types, add EXTRACT_ calls.
[tcpdump] / print-domain.c
index 787a2d66faebf82c7be0a8a036d83d7bdfaae08f..8aff4e99dc1b140a98c4e3ca39b86ca9a704effe 100644 (file)
@@ -254,6 +254,8 @@ ns_cprint(netdissect_options *ndo,
        return (cp + i);
 }
 
+extern const struct tok ns_type2str[];
+
 /* http://www.iana.org/assignments/dns-parameters */
 const struct tok ns_type2str[] = {
        { T_A,          "A" },                  /* RFC 1035 */
@@ -320,6 +322,8 @@ const struct tok ns_type2str[] = {
        { 0,            NULL }
 };
 
+extern const struct tok ns_class2str[];
+
 const struct tok ns_class2str[] = {
        { C_IN,         "IN" },         /* Not used */
        { C_CHAOS,      "CHAOS" },