* include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.
commit6f3914d5a3269c00e70506bd95f816fef6b635ce
authorUlrich Drepper <drepper@redhat.com>
Mon, 12 Nov 2007 23:55:58 +0000 (12 23:55 +0000)
committerUlrich Drepper <drepper@redhat.com>
Mon, 12 Nov 2007 23:55:58 +0000 (12 23:55 +0000)
tree282916b72b33748f124aad021f5fc706184a1c13
parentc1600ce36dc0c58185ec67327316d02639da628b
* include/ifaddrs.c (struct in6addrinfo): Add prefixlen field.

* sysdeps/unix/sysv/linux/check_pf.c (make_request): Always return
list of interfaces.  Also store prefix length.
* sysdeps/posix/getaddrinfo.c (sort_result): Add prefixlen element.
(rfc3484_sort): In rule 9, for IPv4 addresses count only matching
prefix if source and destination address are in the same subnet.
(getaddrinfo): Always call __check_pf.  Fill in prefixlen field.
Always look for matching record in in6ai list.
Correct source_addr_len value for IPv6->IPv4 converted records.
ChangeLog
sysdeps/posix/getaddrinfo.c
sysdeps/unix/sysv/linux/check_pf.c