diff options
author | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-09-29 00:32:20 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@sun.com> | 2009-09-29 00:32:20 -0700 |
commit | 3d55f9b61ba23234c5355ed725963fdc0e520d45 (patch) | |
tree | 48fdd656b46c1f3aed70c6bc41b7fbef50581f26 | |
parent | 8f5292aad3a0dcbc219d76d63ea915f49d403bbc (diff) |
Decode ServerInterpreted addresses in HOST structures
Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
-rw-r--r-- | print11.c | 6 | ||||
-rw-r--r-- | table11.c | 10 |
2 files changed, 10 insertions, 6 deletions
@@ -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 @@ -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; |