mirror of
https://github.com/samba-team/samba.git
synced 2024-12-31 17:18:04 +03:00
Updated some comments.
This commit is contained in:
parent
193cc4f4fc
commit
f150af98a7
@ -61,17 +61,13 @@
|
|||||||
#define DEATH_TIME 600
|
#define DEATH_TIME 600
|
||||||
|
|
||||||
/* The list of dead wins servers is stored in gencache.tdb. Each server is
|
/* The list of dead wins servers is stored in gencache.tdb. Each server is
|
||||||
marked dead m the point of view of a given source address. We keep a
|
marked dead from the point of view of a given source address. We keep a
|
||||||
separate dead list for each src address to cope with multiple interfaces
|
separate dead list for each src address to cope with multiple interfaces
|
||||||
that are not routable to each other.
|
that are not routable to each other.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WINS_SRV_FMT "WINS_SRV_DEAD/%s,%s" /* wins_ip,src_ip */
|
#define WINS_SRV_FMT "WINS_SRV_DEAD/%s,%s" /* wins_ip,src_ip */
|
||||||
|
|
||||||
/*
|
|
||||||
see if an ip is on the dead list
|
|
||||||
*/
|
|
||||||
|
|
||||||
static char *wins_srv_keystr(struct in_addr wins_ip, struct in_addr src_ip)
|
static char *wins_srv_keystr(struct in_addr wins_ip, struct in_addr src_ip)
|
||||||
{
|
{
|
||||||
char *keystr;
|
char *keystr;
|
||||||
@ -85,6 +81,10 @@ static char *wins_srv_keystr(struct in_addr wins_ip, struct in_addr src_ip)
|
|||||||
return keystr;
|
return keystr;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
see if an ip is on the dead list
|
||||||
|
*/
|
||||||
|
|
||||||
BOOL wins_srv_is_dead(struct in_addr wins_ip, struct in_addr src_ip)
|
BOOL wins_srv_is_dead(struct in_addr wins_ip, struct in_addr src_ip)
|
||||||
{
|
{
|
||||||
char *keystr = wins_srv_keystr(wins_ip, src_ip);
|
char *keystr = wins_srv_keystr(wins_ip, src_ip);
|
||||||
|
Loading…
Reference in New Issue
Block a user