Skip to content

Commit

Permalink
* sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
Browse files Browse the repository at this point in the history
	zero if not defined.
	(make_request): Recognize optimistic addresses and treat them like
	deprecated addresses.
	Reported by Neil Horman <nhorman@redhat.com>.
  • Loading branch information
Ulrich Drepper committed Aug 29, 2007
1 parent f3c5406 commit de4d856
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
8 changes: 8 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
2007-08-29 Ulrich Drepper <drepper@redhat.com>

* sysdeps/unix/sysv/linux/check_pf.c (IFA_F_OPTIMISTIC): Define to
zero if not defined.
(make_request): Recognize optimistic addresses and treat them like
deprecated addresses.
Reported by Neil Horman <nhorman@redhat.com>.

2007-08-28 Ulrich Drepper <drepper@redhat.com>

* nscd/connections.c (send_ro_fd): Also transfer file size.
Expand Down
10 changes: 8 additions & 2 deletions sysdeps/unix/sysv/linux/check_pf.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,9 @@
#ifndef IFA_F_HOMEADDRESS
# define IFA_F_HOMEADDRESS 0
#endif
#ifndef IFA_F_OPTIMISTIC
# define IFA_F_OPTIMISTIC 0
#endif


static int
Expand Down Expand Up @@ -203,10 +206,13 @@ make_request (int fd, pid_t pid, bool *seen_ipv4, bool *seen_ipv6,

if (ifam->ifa_flags & (IFA_F_DEPRECATED
| IFA_F_TEMPORARY
| IFA_F_HOMEADDRESS))
| IFA_F_HOMEADDRESS
| IFA_F_OPTIMISTIC))
{
struct in6ailist *newp = alloca (sizeof (*newp));
newp->info.flags = (((ifam->ifa_flags & IFA_F_DEPRECATED)
newp->info.flags = (((ifam->ifa_flags
& (IFA_F_DEPRECATED
| IFA_F_OPTIMISTIC))
? in6ai_deprecated : 0)
| ((ifam->ifa_flags
& IFA_F_TEMPORARY)
Expand Down

0 comments on commit de4d856

Please sign in to comment.