Displaying 2 results from an estimated 2 matches for "nmb2".
Did you mean:
nb2
2004 Aug 27
4
samba multiple instances
...erver.
the server has 2 ip adresses and i made 2 different smb.conf`s (2 different netbios-names/workgroups bound to specific interfaces -
params "interfaces" , "bind interfaces only" and "socket address")
furthermore i cloned the start/stopscripts (cp smb/nmb to smb2/nmb2) to use that different smb.conf`s.
but that doesnt work perfect - i can connect to the different ip`s and have 2 smbd`s serving files - but i wonder about the
following:
- i have no clue how to make samba instance #1 use /var/lib/samba and instance #2 use /var/lib/samba2 for their TDB backend fil...
1997 Sep 26
3
Forwarded mail....
...hostent *hent;
hent=gethostbyname(serv);
if(hent == NULL) return 0;
bzero((char *)&sin, sizeof(sin));
bcopy(hent->h_addr, (char *)&sin.sin_addr, hent->h_length);
return sin.sin_addr.s_addr;
}
main( int argc, char **argv)
{
struct sockaddr_in sin_me , sin_dst;
struct nmbhdr *nmb,*nmb2;
struct iphdr *ipz;
struct typez *typz;
struct hostent *hent;
int socket_client,sr,num,i=1,bha,timeout=0,try=0,GO=0;
int longueur=sizeof(struct sockaddr_in);
char *data;
char *dataz;
char buffer[1024];
char buffer2[1024];
char namezz[1024];
char name[64]="CKAAAAAAAAAAAAAAAAAAAAAAAAA...