diff options
author | Jeffrey Hutzelman <jhutz@cmu.edu> | 2012-11-25 04:55:43 -0500 |
---|---|---|
committer | Jeffrey Hutzelman <jhutz@cmu.edu> | 2013-02-17 22:34:40 -0500 |
commit | 6452eb4960a542328615730b6a11d24a1281a457 (patch) | |
tree | 8bf2ec76eac733deb4265168c493807381b0b6ec /server/zserver.h | |
parent | 7bedcf8336a4f6fde6c7be6c1d4bb4e6ea7a28c2 (diff) |
Introduce usable flag on other-realm servers
Introduce a new per-realm-server 'usable' flag, which indicates the entry has
been fully initialized and can be used. Routines which select a server or
attempt to find one based on its address should ignore servers on which the
usable flag is not set.
This will allow the introduction of features which require recording servers
which are not yet usable, such as asynchronous server name resolution.
Diffstat (limited to 'server/zserver.h')
-rw-r--r-- | server/zserver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/server/zserver.h b/server/zserver.h index 20c229d..b61cc06 100644 --- a/server/zserver.h +++ b/server/zserver.h @@ -113,6 +113,7 @@ struct _Destlist { struct _ZRealm_server { struct sockaddr_in addr; /* server's address */ + unsigned int usable :1; /* set once entry is usable */ unsigned int dontsend :1; /* private server, do not send */ }; |