summaryrefslogtreecommitdiff
path: root/net/tcpview/files/patch-detail-domain.c
blob: 24cf1399489c136d4163320ec8a901e07fc372dc (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
--- detail-domain.c.orig	1993-04-22 20:39:51 UTC
+++ detail-domain.c
@@ -199,6 +199,7 @@ p_type(type)
       case T_ANY:		/* matches any type */
 	strcpy(type_buf, "ANY");
 	break;
+#ifdef T_UNSPEC	
       case T_UINFO:
 	strcpy(type_buf, "UINFO");
 	break;
@@ -211,6 +212,7 @@ p_type(type)
       case T_UNSPEC:
 	strcpy(type_buf, "UNSPEC");
         break;
+#endif        
       default:
 	sprintf(type_buf, "%d", type);
         break;
@@ -633,6 +635,7 @@ p_ans(msg, eom)
 	printf("; errors = %s\n", str);
 	MARK_WINDOW();
 
+#ifdef T_UNSPEC
       case T_UINFO:
         printf("    UINFO: ");
         printf("%s\n", cp);
@@ -654,6 +657,12 @@ p_ans(msg, eom)
 	MARK_WINDOW();
         break;
 
+      case T_UNSPEC:
+	printf("    <binary data, see hex dump below>\n");
+	INCR_PTRS(rdlength);
+	MARK_WINDOW();
+	break;
+#endif
       case T_WKS:
         if (rdlength < (int)(sizeof(u_long) + 1))
             break;
@@ -730,11 +739,6 @@ p_ans(msg, eom)
 	break;
 
 
-      case T_UNSPEC:
-	printf("    <binary data, see hex dump below>\n");
-	INCR_PTRS(rdlength);
-	MARK_WINDOW();
-	break;
 
 
       default: