diff options
author | Jeremy Allison <jra@samba.org> | 1998-01-29 08:25:46 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 1998-01-29 08:25:46 +0000 |
commit | fa5466805685d461564054d7d9947948fc56ae93 (patch) | |
tree | 03e5c01e89728a0c49e747cb0b2ec110d8d06fdb /source/include | |
parent | f6ee3263dac960772024bf9009ad0ddce6d8f289 (diff) | |
download | samba-fa5466805685d461564054d7d9947948fc56ae93.tar.gz samba-fa5466805685d461564054d7d9947948fc56ae93.tar.xz samba-fa5466805685d461564054d7d9947948fc56ae93.zip |
Makefile: Fix for OSF1 typo.
asyncdns.c: Fixes that went into 1.9.18p2 - allow unclocking of sigterm.
chgpasswd.c: char -> unsigned char fixes.
includes.h: AIX fix to get prototype for inet_ntoa.
local.h: Tune size of shared memory based on MAX_OPEN_FILES.
nmbd_mynames.c: Fix for nmbd repeated refresh bug.
nmbd_responserecordsdb.c: Fix for nmbd repeated refresh bug.
nmbd_winsserver.c: Fix for multi-homed registration optimisation.
smb.h: Moved default shared memory size to local.h
Jeremy.
Diffstat (limited to 'source/include')
-rw-r--r-- | source/include/includes.h | 1 | ||||
-rw-r--r-- | source/include/local.h | 5 | ||||
-rw-r--r-- | source/include/proto.h | 3 | ||||
-rw-r--r-- | source/include/smb.h | 5 |
4 files changed, 8 insertions, 6 deletions
diff --git a/source/include/includes.h b/source/include/includes.h index f021fa952e7..218ce199559 100644 --- a/source/include/includes.h +++ b/source/include/includes.h @@ -554,6 +554,7 @@ char *mktemp(char *); /* No standard include */ #include <sys/priv.h> #include <netinet/tcp.h> #include <locale.h> +#include <arpa/inet.h> /* needed for inet_ntoa proto */ #define SYSV #define USE_WAITPID #define USE_SIGBLOCK diff --git a/source/include/local.h b/source/include/local.h index 10906d1ff1e..0e2a927d2ee 100644 --- a/source/include/local.h +++ b/source/include/local.h @@ -39,6 +39,11 @@ #define MAX_CONNECTIONS 127 #define MAX_OPEN_FILES 100 +/* Default size of shared memory used for share mode locking */ +#ifndef SHMEM_SIZE +#define SHMEM_SIZE (1024*MAX_OPEN_FILES) +#endif + /* the max number of connections that the smbstatus program will show */ #define MAXSTATUS 1000 diff --git a/source/include/proto.h b/source/include/proto.h index f422b8fc901..fd31db7e629 100644 --- a/source/include/proto.h +++ b/source/include/proto.h @@ -47,7 +47,7 @@ BOOL chgpasswd(char *name,char *oldpass,char *newpass); BOOL chgpasswd(char *name,char *oldpass,char *newpass); BOOL check_lanman_password(char *user, unsigned char *pass1, unsigned char *pass2, struct smb_passwd **psmbpw); -BOOL change_lanman_password(struct smb_passwd *smbpw, char *pass1, char *pass2); +BOOL change_lanman_password(struct smb_passwd *smbpw, unsigned char *pass1, unsigned char *pass2); /*The following definitions come from client.c */ @@ -710,6 +710,7 @@ struct response_record *make_response_record( struct subnet_record *subrec, struct userdata_struct *userdata); struct response_record *find_response_record(struct subnet_record **ppsubrec, uint16 id); +BOOL is_refresh_already_queued(struct subnet_record *subrec, struct name_record *namerec); /*The following definitions come from nmbd_sendannounce.c */ diff --git a/source/include/smb.h b/source/include/smb.h index 9c55e3f8be4..9a7278069d4 100644 --- a/source/include/smb.h +++ b/source/include/smb.h @@ -27,11 +27,6 @@ #define BUFFER_SIZE (0xFFFF) #define SAFETY_MARGIN 1024 -/* Default size of shared memory used for share mode locking */ -#ifndef SHMEM_SIZE -#define SHMEM_SIZE 102400 -#endif - #define NMB_PORT 137 #define DGRAM_PORT 138 #define SMB_PORT 139 |