summaryrefslogtreecommitdiffstats
path: root/source/include/local.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-01-03 03:17:16 +0000
committerAndrew Tridgell <tridge@samba.org>2000-01-03 03:17:16 +0000
commit280e6359d36c9bc8dcded302f15c3a1db8e3feeb (patch)
treeedd16ea2c9897acd445471828c3954c8e3a42208 /source/include/local.h
parent1fb293732ed65deba6958000a9f6de7900e21f5c (diff)
downloadsamba-280e6359d36c9bc8dcded302f15c3a1db8e3feeb.tar.gz
samba-280e6359d36c9bc8dcded302f15c3a1db8e3feeb.tar.xz
samba-280e6359d36c9bc8dcded302f15c3a1db8e3feeb.zip
added the unexpected packet database (unexpected.tdb)
this means "nmblookup -S" now always works, even with broken servers the database stores all unexpected replies and these can be accessed by any client. while doing this I cleaned up a couple of functions, and put in place a better trn_id generator. in most places the code got quite a bit simpler due to the addition of simple helper functions. I haven't yet put the code in to take advantage of this for pdc replies - that will be next. Jeremys pdc finding code will then work :)
Diffstat (limited to 'source/include/local.h')
-rw-r--r--source/include/local.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/include/local.h b/source/include/local.h
index 9da39fe991c..bd75d4e3858 100644
--- a/source/include/local.h
+++ b/source/include/local.h
@@ -138,6 +138,7 @@
#define NMBD_MAX_TTL (24*60*60)
#define LPQ_LOCK_TIMEOUT (5)
#define NMBD_INTERFACES_RELOAD (120)
+#define NMBD_UNEXPECTED_TIMEOUT (15)
/* the following are in milliseconds */
#define LOCK_RETRY_TIMEOUT (100)