* posix/tst-rfc3484.c: Adjust for addition of prefixlen field.

* posix/tst-rfc3484-2.c: Likewise.
This commit is contained in:
Ulrich Drepper 2007-11-13 17:06:28 +00:00
parent 5742e960d5
commit bd63f380d8
3 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,8 @@
2007-11-13 Ulrich Drepper <drepper@redhat.com>
* posix/tst-rfc3484.c: Adjust for addition of prefixlen field.
* posix/tst-rfc3484-2.c: Likewise.
* include/kernel-features.h: Moved to...
* sysdeps/mach/hurd/kernel-features.h: ...here.

View File

@ -99,6 +99,7 @@ do_test (void)
results[0].source_addr_len = sizeof (so1);
results[0].source_addr_flags = 0;
results[0].service_order = 0;
results[0].prefixlen = 16;
memcpy (&results[0].source_addr, &so1, sizeof (so1));
results[1].dest_addr = &ai2;
@ -106,6 +107,7 @@ do_test (void)
results[1].source_addr_len = sizeof (so2);
results[1].source_addr_flags = 0;
results[1].service_order = 1;
results[1].prefixlen = 16;
memcpy (&results[1].source_addr, &so2, sizeof (so2));
@ -125,6 +127,7 @@ do_test (void)
results[1].source_addr_len = sizeof (so1);
results[1].source_addr_flags = 0;
results[1].service_order = 1;
results[1].prefixlen = 16;
memcpy (&results[1].source_addr, &so1, sizeof (so1));
results[0].dest_addr = &ai2;
@ -132,6 +135,7 @@ do_test (void)
results[0].source_addr_len = sizeof (so2);
results[0].source_addr_flags = 0;
results[0].service_order = 0;
results[0].prefixlen = 16;
memcpy (&results[0].source_addr, &so2, sizeof (so2));

View File

@ -94,6 +94,7 @@ do_test (void)
results[i].source_addr_len = sizeof (so);
results[i].source_addr_flags = 0;
results[i].service_order = i;
results[i].prefixlen = 8;
}
qsort (results, naddrs, sizeof (results[0]), rfc3484_sort);