summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-10-23 20:41:15 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-10-23 20:41:15 +0200
commitfe36fe8c3e76e3dd7c66ecdf7254dc01c5d065c0 (patch)
tree26830fe7d310fc098963401e743666608642445b /source4
parentd1bc7e56d0584ef4f1051e39cd1a81182d63f096 (diff)
downloadsamba-fe36fe8c3e76e3dd7c66ecdf7254dc01c5d065c0.tar.gz
samba-fe36fe8c3e76e3dd7c66ecdf7254dc01c5d065c0.tar.bz2
samba-fe36fe8c3e76e3dd7c66ecdf7254dc01c5d065c0.zip
Use common net utility code (address and sockaddr manipulation).
Diffstat (limited to 'source4')
-rw-r--r--source4/client/smbmount.c2
-rw-r--r--source4/lib/socket/interface.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source4/client/smbmount.c b/source4/client/smbmount.c
index d2e98eb140..c219a42f3a 100644
--- a/source4/client/smbmount.c
+++ b/source4/client/smbmount.c
@@ -800,7 +800,7 @@ static void parse_mount_smb(int argc, char **argv)
DEBUGLEVEL = val;
} else if(!strcmp(opts, "ip")) {
dest_ip = interpret_addr2(opteq+1);
- if (is_zero_ip(dest_ip)) {
+ if (is_zero_ip_v4(dest_ip)) {
fprintf(stderr,"Can't resolve address %s\n", opteq+1);
exit(1);
}
diff --git a/source4/lib/socket/interface.c b/source4/lib/socket/interface.c
index 842f2f66c5..524aa09655 100644
--- a/source4/lib/socket/interface.c
+++ b/source4/lib/socket/interface.c
@@ -49,7 +49,7 @@ static struct interface *iface_find(struct interface *interfaces,
struct in_addr ip, bool CheckMask)
{
struct interface *i;
- if (is_zero_ip(ip)) return interfaces;
+ if (is_zero_ip_v4(ip)) return interfaces;
for (i=interfaces;i;i=i->next)
if (CheckMask) {