summaryrefslogtreecommitdiff
path: root/server
diff options
context:
space:
mode:
authorGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-02-17 22:33:01 -0500
committerGravatar Jeffrey Hutzelman <jhutz@cmu.edu>2013-02-17 22:34:40 -0500
commit6d42c986d3a7ff081a87ef2bf5fbcaa1786e8d0e (patch)
tree188f55ac28b1c597cdd472485894eb2905ce8a68 /server
parentf4ba8a876fe6f2d0a009362b7fa230ceb545379c (diff)
server: include realm-server flags in dump
Diffstat (limited to 'server')
-rw-r--r--server/realm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/server/realm.c b/server/realm.c
index 3bc72ff..f4ccabd 100644
--- a/server/realm.c
+++ b/server/realm.c
@@ -1174,8 +1174,11 @@ realm_dump_realms(FILE *fp)
for (ii = 0; ii < nrealms; ii++) {
(void) fprintf(fp, "%d:%s\n", ii, otherrealms[ii]->name);
for (jj = 0; jj < otherrealms[ii]->count; jj++) {
- (void) fprintf(fp, "\t%s\n",
- inet_ntoa(otherrealms[ii]->srvrs[jj].addr.sin_addr));
+ (void) fprintf(fp, "\t%s%s%s%s\n",
+ inet_ntoa(otherrealms[ii]->srvrs[jj].addr.sin_addr),
+ otherrealms[ii]->srvrs[jj].dontsend ? " nosend" : "",
+ otherrealms[ii]->srvrs[jj].got_addr ? " gotaddr" : "",
+ otherrealms[ii]->srvrs[jj].deleted ? " deleted" : "");
}
/* dump the subs */
subscr_dump_subs(fp, otherrealms[ii]->subs);