Client Ip Address
Rainer Link
link at foo.fh-furtwangen.de
Thu Dec 18 09:20:27 GMT 2003
Bruno Lopes de Souza Benchimol wrote:
> I've still couldnt get ip address on a vfs module, on smbd code it uses
> vars like
> conn->client_address or function like client_addr() which returns the same
> result or even safe_strcpy(conn->client_address, client_addr(),
> sizeof(conn->client_address)-1);
char client_ip[CLIENT_IP_SIZE];
safe_strcpy(client_ip, conn->client_address, CLIENT_IP_SIZE -1);
works for me.
best regards
Rainer Link
More information about the samba-technical
mailing list