diff options
author | Jeremy Allison <jra@samba.org> | 2007-10-15 16:11:48 -0700 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2007-10-15 16:11:48 -0700 |
commit | 666f50b01f282e520c59b94944d4b1583168d46a (patch) | |
tree | 9acb499f1bdfdb1a285a3392708b0c942fc2c17e /source3/lib/interface.c | |
parent | 48cd61d30ed46e2c61c0df9d510f50ae7a11accd (diff) | |
download | samba-666f50b01f282e520c59b94944d4b1583168d46a.tar.gz samba-666f50b01f282e520c59b94944d4b1583168d46a.tar.xz samba-666f50b01f282e520c59b94944d4b1583168d46a.zip |
Move to protocol independent code in most of lib/util_sock.c
We don't use gethostbyname any more except in one case where
we're looking for host aliases (I don't know how to do that
with getaddrinfo yet). New function should be getaddrinfo().
Next step will be fixing lib/access.c, and then changing
libsmb/namequery.c to cope with IPv6 address returns.
Jeremy.
(This used to be commit 4a56b697b6adcf095e25895c4a9ba3192ed34124)
Diffstat (limited to 'source3/lib/interface.c')
-rw-r--r-- | source3/lib/interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/interface.c b/source3/lib/interface.c index ded70683e0d..d2aa69a2893 100644 --- a/source3/lib/interface.c +++ b/source3/lib/interface.c @@ -461,7 +461,7 @@ static void interpret_interface(char *token) /* maybe it is a DNS name */ p = strchr_m(token,'/'); if (p == NULL) { - if (!interpret_string_addr(&ss, token)) { + if (!interpret_string_addr(&ss, token, 0)) { DEBUG(2, ("interpret_interface: Can't find address " "for %s\n", token)); return; @@ -481,7 +481,7 @@ static void interpret_interface(char *token) /* parse it into an IP address/netmasklength pair */ *p = 0; - goodaddr = interpret_string_addr(&ss, token); + goodaddr = interpret_string_addr(&ss, token, 0); *p++ = '/'; if (!goodaddr) { @@ -492,7 +492,7 @@ static void interpret_interface(char *token) } if (strlen(p) > 2) { - goodaddr = interpret_string_addr(&ss_mask, p); + goodaddr = interpret_string_addr(&ss_mask, p, 0); if (!goodaddr) { DEBUG(2,("interpret_interface: " "can't determine netmask from %s\n", |