Hi All,
This might be a lame question, but when I was reading the code of the
authentication module, I found out that there are two ids associated
with one host: the hostname(host_id) and host_netid(netid). Then I found
out that they represent two identifiers in two structures:
struct Host
{
int64_t
name;
GroupList
groups;
time_t
auth_time;
time_t
last_active;
uint32_t
hard_timeout;
std::list<AuthedUser>
users;
};
struct HostNetid
{
int64_t
name;
std::string
addr_binding;
AddressType
addr_type;
bool
is_router;
bool
is_gateway;
GroupList
groups;
boost::shared_ptr<Host>
host;
};
Could someone help me clarify what is the difference between these two
identifiers? Why do we need two different ids to identify one host?
Thanks very much in advance,
-Zheng Cai
_______________________________________________
nox-dev mailing list
nox-dev@noxrepo.org
http://noxrepo.org/mailman/listinfo/nox-dev_noxrepo.org