1 --- lib/krb5/os/localaddr.c.orig	2009-10-30 20:17:27.000000000 -0700
2 +++ lib/krb5/os/localaddr.c	2010-04-19 12:39:56.707090973 -0700
3 @@ -175,6 +175,7 @@
4  }
5  #endif
6 
7 +#if 0
8  static int
9  is_loopback_address(struct sockaddr *sa)
10  {
11 @@ -191,6 +192,7 @@
12          return 0;
13      }
14  }
15 +#endif
16 
17  #ifdef HAVE_IFADDRS_H
18  #include <ifaddrs.h>
19 @@ -467,12 +469,14 @@
20              ifp->ifa_flags &= ~IFF_UP;
21              continue;
22          }
23 +#if 0
24          if (is_loopback_address(ifp->ifa_addr)) {
25              /* Pretend it's not up, so the second pass will skip
26                 it.  */
27              ifp->ifa_flags &= ~IFF_UP;
28              continue;
29          }
30 +#endif
31          /* If this address is a duplicate, punt.  */
32          match = 0;
33          for (ifp2 = ifp_head; ifp2 && ifp2 != ifp; ifp2 = ifp2->ifa_next) {
34 @@ -601,11 +605,13 @@
35              }
36              /*@=moduncon@*/
37 
38 +#if 0
39              /* None of the current callers want loopback addresses.  */
40              if (is_loopback_address((struct sockaddr *)&lifr->lifr_addr)) {
41                  Tprintf (("  loopback\n"));
42                  goto skip;
43              }
44 +#endif
45              /* Ignore interfaces that are down.  */
46              if ((lifreq.lifr_flags & IFF_UP) == 0) {
47                  Tprintf (("  down\n"));
48 @@ -772,11 +778,13 @@
49              }
50              /*@=moduncon@*/
51 
52 +#if 0
53              /* None of the current callers want loopback addresses.  */
54              if (is_loopback_address(&lifr->iflr_addr)) {
55                  Tprintf (("  loopback\n"));
56                  goto skip;
57              }
58 +#endif
59              /* Ignore interfaces that are down.  */
60              if ((lifreq.iflr_flags & IFF_UP) == 0) {
61                  Tprintf (("  down\n"));
62 @@ -987,11 +995,13 @@
63          }
64          /*@=moduncon@*/
65 
66 +#if 0
67          /* None of the current callers want loopback addresses.  */
68          if (is_loopback_address(&ifreq.ifr_addr)) {
69              Tprintf (("  loopback\n"));
70              goto skip;
71          }
72 +#endif
73          /* Ignore interfaces that are down.  */
74          if ((ifreq.ifr_flags & IFF_UP) == 0) {
75              Tprintf (("  down\n"));
76