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 | 4a56b697b6adcf095e25895c4a9ba3192ed34124 (patch) | |
tree | f9d111fa2a20005b99eb90597c92230719e4d004 /source/lib/interface.c | |
parent | 406737cd9a34ac498e5823b380e1768d41e16c1b (diff) | |
download | samba-4a56b697b6adcf095e25895c4a9ba3192ed34124.tar.gz samba-4a56b697b6adcf095e25895c4a9ba3192ed34124.tar.xz samba-4a56b697b6adcf095e25895c4a9ba3192ed34124.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.
Diffstat (limited to 'source/lib/interface.c')
-rw-r--r-- | source/lib/interface.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source/lib/interface.c b/source/lib/interface.c index ded70683e0d..d2aa69a2893 100644 --- a/source/lib/interface.c +++ b/source/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", |