summaryrefslogtreecommitdiffstats
path: root/source/include/proto.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1996-06-06 11:43:09 +0000
committerAndrew Tridgell <tridge@samba.org>1996-06-06 11:43:09 +0000
commit7ed71b73ae745da099072eee36fc2700d1d91407 (patch)
tree9b0b7714443f6d105c7476324d5faa4aec5d90c4 /source/include/proto.h
parent8eb701d0d6483d0f5c6de3640b38f98128cd321c (diff)
downloadsamba-7ed71b73ae745da099072eee36fc2700d1d91407.tar.gz
samba-7ed71b73ae745da099072eee36fc2700d1d91407.tar.xz
samba-7ed71b73ae745da099072eee36fc2700d1d91407.zip
- added interface.c and removed all the references to myip, bcast_ip
and Netmask, instead replacing them with calls to routines in interface.c - got rid of old MAXINT define - added code to ensure we only return one entry for each name in the ipc enum routines - added new_only option to add_netbios_entry() to prevent overwriting of important names - minor time handling fixup
Diffstat (limited to 'source/include/proto.h')
-rw-r--r--source/include/proto.h20
1 files changed, 14 insertions, 6 deletions
diff --git a/source/include/proto.h b/source/include/proto.h
index 8b39c4437b6..2c7cb8a1269 100644
--- a/source/include/proto.h
+++ b/source/include/proto.h
@@ -63,6 +63,13 @@ char *DirCacheCheck(char *path,char *name,int snum);
void DirCacheFlush(int snum);
void fault_setup(void (*fn)());
char *getsmbpass(char *prompt) ;
+void load_interfaces(void);
+void iface_set_default(char *ip,char *bcast,char *nmask);
+BOOL ismyip(struct in_addr ip);
+BOOL ismybcast(struct in_addr bcast);
+struct in_addr *iface_bcast(struct in_addr ip);
+struct in_addr *iface_nmask(struct in_addr ip);
+struct in_addr *iface_ip(struct in_addr ip);
int reply_trans(char *inbuf,char *outbuf);
int interpret_coding_system(char *str, int def);
char *lp_string(char *s);
@@ -109,7 +116,8 @@ void announce_master(void);
struct work_record *remove_workgroup(struct domain_record *d,
struct work_record *work);
void expire_browse_cache(time_t t);
-struct work_record *find_workgroupstruct(struct domain_record *d, fstring name, BOOL add);
+struct work_record *find_workgroupstruct(struct domain_record *d,
+ fstring name, BOOL add);
struct domain_record *find_domain(struct in_addr source_ip);
void dump_workgroups(void);
struct domain_record *add_domain_entry(struct in_addr source_ip,
@@ -164,8 +172,11 @@ void remove_name(struct name_record *n);
void dump_names(void);
void remove_netbios_name(char *name,int type, enum name_source source,
struct in_addr ip);
-struct name_record *add_netbios_entry(char *name, int type, int nb_flags, int ttl,
- enum name_source source, struct in_addr ip);
+struct name_record *add_netbios_entry(char *name, int type, int nb_flags,
+ int ttl,
+ enum name_source source,
+ struct in_addr ip,
+ BOOL new_only);
void remove_name_entry(char *name,int type);
void add_name_entry(char *name,int type,int nb_flags);
void add_my_names(void);
@@ -466,9 +477,6 @@ BOOL string_sub(char *s,char *pattern,char *insert);
BOOL do_match(char *str, char *regexp, int case_sig);
BOOL mask_match(char *str, char *regexp, int case_sig,BOOL trans2);
void become_daemon(void);
-void get_broadcast(struct in_addr *if_ipaddr,
- struct in_addr *if_bcast,
- struct in_addr *if_nmask);
BOOL yesno(char *p);
char *fgets_slash(char *s2,int maxlen,FILE *f);
int set_filelen(int fd, long len);