diff options
author | Vijaykumar Patwari <vijaykumar.patwari@wipro.com> | 2004-04-08 06:54:42 +0000 |
---|---|---|
committer | Vijaykumar Patwari <vijay@src.gnome.org> | 2004-04-08 06:54:42 +0000 |
commit | 7397d1c9fd75243c7f945f6a2e5892307bdb287d (patch) | |
tree | 628d83021bb0c476798cb855f52da2c573b94528 /daemon/auth.c | |
parent | d5083896f6c108f9f0b1ca76d4bc9837bb88176c (diff) | |
download | gdm-7397d1c9fd75243c7f945f6a2e5892307bdb287d.tar.gz |
Replaced Address Family, FamilyInternet by FamilyInternetV6 for IPv6 while
2004-04-08 Vijaykumar Patwari <vijaykumar.patwari@wipro.com>
* daemon/auth.c (get_local_auths): Replaced Address Family,
FamilyInternet by FamilyInternetV6 for IPv6 while adding addresses
for authorization. Fixes "Remote login with IPv6 enabled".
Diffstat (limited to 'daemon/auth.c')
-rw-r--r-- | daemon/auth.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/auth.c b/daemon/auth.c index df5ad453..535901e0 100644 --- a/daemon/auth.c +++ b/daemon/auth.c @@ -403,7 +403,7 @@ get_local_auths (GdmDisplay *d) /* we should write out an entry for d->addr since possibly it is not in d->addrs */ #ifdef ENABLE_IPV6 - if ( ! add_auth_entry (d, &auths, NULL, NULL, FamilyInternet, (char *)((d->addr6).s6_addr), sizeof (struct in6_addr))) + if ( ! add_auth_entry (d, &auths, NULL, NULL, FamilyInternetV6, (char *)((d->addr6).s6_addr), sizeof (struct in6_addr))) goto get_local_auth_error; else #endif @@ -432,7 +432,7 @@ get_local_auths (GdmDisplay *d) if (memcmp (ia6, &(d->addr6), sizeof (struct in6_addr)) == 0) continue; - if ( ! add_auth_entry (d, &auths, NULL, NULL, FamilyInternet, (char *)(ia6->s6_addr), sizeof (struct in6_addr))) + if ( ! add_auth_entry (d, &auths, NULL, NULL, FamilyInternetV6, (char *)(ia6->s6_addr), sizeof (struct in6_addr))) goto get_local_auth_error; if (gdm_is_loopback_addr6 (ia6)) @@ -463,7 +463,7 @@ get_local_auths (GdmDisplay *d) #ifdef ENABLE_IPV6 if (ia->sa_family == AF_INET6) { - if ( ! add_auth_entry (d, &auths, NULL, NULL, FamilyInternet, (char *)(((struct sockaddr_in6 *)ia)->sin6_addr.s6_addr), sizeof (struct in6_addr))) + if ( ! add_auth_entry (d, &auths, NULL, NULL, FamilyInternetV6, (char *)(((struct sockaddr_in6 *)ia)->sin6_addr.s6_addr), sizeof (struct in6_addr))) goto get_local_auth_error; if (gdm_is_loopback_addr6 (&((struct sockaddr_in6 *)ia)->sin6_addr)) @@ -486,7 +486,7 @@ get_local_auths (GdmDisplay *d) #ifdef ENABLE_IPV6 if (d->addrtype == AF_INET6) { - if ( ! add_auth_entry (d, &auths, NULL, NULL, FamilyInternet, lo6, sizeof (struct in6_addr))) + if ( ! add_auth_entry (d, &auths, NULL, NULL, FamilyInternetV6, lo6, sizeof (struct in6_addr))) goto get_local_auth_error; } else |