about summary refs log tree commit diff
path: root/posix/tst-rfc3484-2.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-11-20 00:41:22 +0000
committerUlrich Drepper <drepper@redhat.com>2007-11-20 00:41:22 +0000
commitee72b97189983768c306bcd7a8b5a7bfdfbf8aae (patch)
tree544ddd351f8f8091d296697c4d403b7a84008e0b /posix/tst-rfc3484-2.c
parentf4a797657875d920157b0a2fe087a60b6d7c8e0d (diff)
downloadglibc-ee72b97189983768c306bcd7a8b5a7bfdfbf8aae.tar.gz
glibc-ee72b97189983768c306bcd7a8b5a7bfdfbf8aae.tar.xz
glibc-ee72b97189983768c306bcd7a8b5a7bfdfbf8aae.zip
* sysdeps/posix/getaddrinfo.c (defaults_scopes, scopes): New variables.
	(get_scope): For IPv4 scope, use scopes table.
	(fini): Free scopes table if necessary.
	(free_scopelist): New function.
	(scopecmp): New function.
	(gaiconf_init): Also handle scopev4 entries.
	* posix/tst-rfc3484.c (do_test): Initialize scopes.
	* posix/tst-rfc3484-2.c (do_test): Likewise.
	* posix/gai.conf: Document scopev4 defaults.
	* posix/Makefile (tests): Add tst-rfc3484-3.
	* posix/tst-rfc3484-3.c: New file.
Diffstat (limited to 'posix/tst-rfc3484-2.c')
-rw-r--r--posix/tst-rfc3484-2.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/posix/tst-rfc3484-2.c b/posix/tst-rfc3484-2.c
index 6d60ccd3bc..d29f0725cc 100644
--- a/posix/tst-rfc3484-2.c
+++ b/posix/tst-rfc3484-2.c
@@ -66,6 +66,7 @@ do_test (void)
 {
   labels = default_labels;
   precedence = default_precedence;
+  scopes = default_scopes;
 
   struct sockaddr_in so1;
   so1.sin_family = AF_INET;