summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@sun.com>2009-09-29 00:32:20 -0700
committerAlan Coopersmith <alan.coopersmith@sun.com>2009-09-29 00:32:20 -0700
commit3d55f9b61ba23234c5355ed725963fdc0e520d45 (patch)
tree48fdd656b46c1f3aed70c6bc41b7fbef50581f26
parent8f5292aad3a0dcbc219d76d63ea915f49d403bbc (diff)
Decode ServerInterpreted addresses in HOST structures
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r--print11.c6
-rw-r--r--table11.c10
2 files changed, 10 insertions, 6 deletions
diff --git a/print11.c b/print11.c
index 7e0cc72..37add49 100644
--- a/print11.c
+++ b/print11.c
@@ -3912,13 +3912,7 @@ ChangeHosts (
PrintField(buf, 1, 1, INS_DEL, "mode");
printreqlen(buf, fd, DVALUE2(2 + (n + p) / 4));
n = IShort(&buf[6]);
-#if 0
- PrintField(buf, 4, 1, HOSTFAMILY, "family");
- printfield(buf, 6, 2, CARD16, "length of address");
- PrintBytes(&buf[8], (long)n, "address");
-#else
PrintField(buf, 4, 4+n, HOST, "host");
-#endif
}
void
diff --git a/table11.c b/table11.c
index f701e87..bce0721 100644
--- a/table11.c
+++ b/table11.c
@@ -641,6 +641,7 @@ InitEnumeratedTypes (void)
DefineEValue(p, 0L, "Internet");
DefineEValue(p, 1L, "DECnet");
DefineEValue(p, 2L, "Chaos");
+ DefineEValue(p, 5L, "ServerInterpreted");
DefineEValue(p, 6L, "InternetV6");
DefineEValue(p, 252L, "LocalHost");
DefineEValue(p, 253L, "Kerberos5");
@@ -1062,6 +1063,15 @@ PrintHOST (
}
#endif
+ case 5: /* ServerInterpreted */
+ {
+ int i;
+ for (i = 0 ; buf[i + 4] != 0 ; i++) { /* empty loop */ }
+ PrintString8(&buf[4], i, "type");
+ PrintString8(&buf[i+5], n - i - 1, "value");
+ break;
+ }
+
case 254:
PrintString8(&buf[4], n, "address");
break;