summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVijaykumar Patwari <vijaykumar.patwari@wipro.com>2004-04-08 06:54:42 +0000
committerVijaykumar Patwari <vijay@src.gnome.org>2004-04-08 06:54:42 +0000
commit7397d1c9fd75243c7f945f6a2e5892307bdb287d (patch)
tree628d83021bb0c476798cb855f52da2c573b94528
parentd5083896f6c108f9f0b1ca76d4bc9837bb88176c (diff)
downloadgdm-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".
-rw-r--r--ChangeLog6
-rw-r--r--daemon/auth.c8
2 files changed, 10 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 630c3421..59e8c1f5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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".
+
Sun Apr 04 11:12:55 2004 George Lebl <jirka@5z.com>
* daemon/misc.c, daemon/slave.c, daemon/display.c, daemon/gdm.c:
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