diff options
author | Adam Jackson <ajax@redhat.com> | 2008-10-02 17:08:48 -0400 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2008-10-02 17:08:48 -0400 |
commit | 7921c4a0bfc843c772dcb2fc185d4bcab1316330 (patch) | |
tree | 0f2fa61d140b2f579a02bfaf89fc4539c8a3ca5d /os | |
parent | f836e1f11b7bf3449c3e469cc7799c4ed28d2356 (diff) |
Remove some stale IPv6 debugging
Diffstat (limited to 'os')
-rw-r--r-- | os/access.c | 39 |
1 files changed, 1 insertions, 38 deletions
diff --git a/os/access.c b/os/access.c index c91212b1b..50fc5f9f2 100644 --- a/os/access.c +++ b/os/access.c @@ -480,7 +480,7 @@ DefineLocalHost: #define ifraddr_size(a) (sizeof (a)) #endif -#if defined(DEF_SELF_DEBUG) || (defined(IPv6) && defined(AF_INET6)) +#if defined(IPv6) && defined(AF_INET6) #include <arpa/inet.h> #endif @@ -616,19 +616,6 @@ DefineSelf (int fd) if (family == FamilyInternet6) in6_fillscopeid((struct sockaddr_in6 *)&IFR_IFR_ADDR); #endif -#ifdef DEF_SELF_DEBUG - if (family == FamilyInternet) - ErrorF("Xserver: DefineSelf(): ifname = %s, addr = %d.%d.%d.%d\n", - IFR_IFR_NAME, addr[0], addr[1], addr[2], addr[3]); -#if defined(IPv6) && defined(AF_INET6) - else if (family == FamilyInternet6) { - char cp[INET6_ADDRSTRLEN] = ""; - inet_ntop(AF_INET6, addr, cp, sizeof(cp)); - ErrorF("Xserver: DefineSelf(): ifname = %s, addr = %s\n", - IFR_IFR_NAME, cp); - } -#endif -#endif /* DEF_SELF_DEBUG */ for (host = selfhosts; host && !addrEqual (family, addr, len, host); host = host->next) @@ -738,11 +725,6 @@ DefineSelf (int fd) continue; } #endif /* SIOCGIFBRDADDR */ -#ifdef DEF_SELF_DEBUG - ErrorF("Xserver: DefineSelf(): ifname = %s, baddr = %s\n", - IFR_IFR_NAME, - inet_ntoa(((struct sockaddr_in *) &broad_addr)->sin_addr)); -#endif /* DEF_SELF_DEBUG */ XdmcpRegisterBroadcastAddress ((struct sockaddr_in *) &broad_addr); } #endif /* XDMCP */ @@ -770,20 +752,6 @@ DefineSelf (int fd) in6_fillscopeid((struct sockaddr_in6 *)ifr->ifa_addr); #endif -#ifdef DEF_SELF_DEBUG - if (family == FamilyInternet) - ErrorF("Xserver: DefineSelf(): ifname = %s, addr = %d.%d.%d.%d\n", - ifr->ifa_name, addr[0], addr[1], addr[2], addr[3]); -#if defined(IPv6) && defined(AF_INET6) - else if (family == FamilyInternet6) { - char cp[INET6_ADDRSTRLEN]; - - inet_ntop(AF_INET6, addr, cp, sizeof(cp)); - ErrorF("Xserver: DefineSelf(): ifname = %s addr = %s\n", - ifr->ifa_name, cp); - } -#endif -#endif /* DEF_SELF_DEBUG */ for (host = selfhosts; host != NULL && !addrEqual(family, addr, len, host); host = host->next) @@ -848,11 +816,6 @@ DefineSelf (int fd) broad_addr = *ifr->ifa_broadaddr; else continue; -#ifdef DEF_SELF_DEBUG - ErrorF("Xserver: DefineSelf(): ifname = %s, baddr = %s\n", - ifr->ifa_name, - inet_ntoa(((struct sockaddr_in *) &broad_addr)->sin_addr)); -#endif /* DEF_SELF_DEBUG */ XdmcpRegisterBroadcastAddress((struct sockaddr_in *) &broad_addr); } |