diff options
author | Cy Schubert <cy@FreeBSD.org> | 2006-07-16 17:49:46 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2006-07-16 17:49:46 +0000 |
commit | b6bd33935129cf23c599c969d81427c0d573e8ab (patch) | |
tree | 534c4006b64df680ac707c1254cfc78cae2ec321 /security/krb5-16/files | |
parent | a0a040a95c680ee581d332ae847147560c4975a3 (diff) |
Cause the KDC to also listen on the loopback interface. This is useful
for situations when the database is replicated to a secure environment
that does not have network access, by hand.
Notes
Notes:
svn path=/head/; revision=167987
Diffstat (limited to 'security/krb5-16/files')
-rw-r--r-- | security/krb5-16/files/patch-lib-krb5-os-localaddr.c | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/security/krb5-16/files/patch-lib-krb5-os-localaddr.c b/security/krb5-16/files/patch-lib-krb5-os-localaddr.c new file mode 100644 index 000000000000..9e701ba97985 --- /dev/null +++ b/security/krb5-16/files/patch-lib-krb5-os-localaddr.c @@ -0,0 +1,75 @@ +--- lib/krb5/os/localaddr.c.orig Wed Apr 13 09:55:43 2005 ++++ lib/krb5/os/localaddr.c Sun Jul 16 09:29:05 2006 +@@ -436,12 +436,14 @@ + #endif + if ((ifp->ifa_flags & IFF_UP) == 0) + continue; ++#if 0 + if (ifp->ifa_flags & IFF_LOOPBACK) { + /* Pretend it's not up, so the second pass will skip + it. */ + ifp->ifa_flags &= ~IFF_UP; + continue; + } ++#endif + if (ifp->ifa_addr == NULL) { + /* Can't use an interface without an address. Linux + apparently does this sometimes. [RT ticket 1770 from +@@ -459,8 +461,10 @@ + for (ifp2 = ifp_head; ifp2 && ifp2 != ifp; ifp2 = ifp2->ifa_next) { + if ((ifp2->ifa_flags & IFF_UP) == 0) + continue; ++#if 0 + if (ifp2->ifa_flags & IFF_LOOPBACK) + continue; ++#endif + if (addr_eq (ifp->ifa_addr, ifp2->ifa_addr)) { + match = 1; + ifp->ifa_flags &= ~IFF_UP; +@@ -583,6 +587,7 @@ + } + /*@=moduncon@*/ + ++#if 0 + #ifdef IFF_LOOPBACK + /* None of the current callers want loopback addresses. */ + if (lifreq.lifr_flags & IFF_LOOPBACK) { +@@ -590,6 +595,7 @@ + goto skip; + } + #endif ++#endif + /* Ignore interfaces that are down. */ + if ((lifreq.lifr_flags & IFF_UP) == 0) { + Tprintf ((" down\n")); +@@ -755,6 +761,7 @@ + } + /*@=moduncon@*/ + ++#if 0 + #ifdef IFF_LOOPBACK + /* None of the current callers want loopback addresses. */ + if (lifreq.iflr_flags & IFF_LOOPBACK) { +@@ -762,6 +769,7 @@ + goto skip; + } + #endif ++#endif + /* Ignore interfaces that are down. */ + if ((lifreq.iflr_flags & IFF_UP) == 0) { + Tprintf ((" down\n")); +@@ -971,12 +979,14 @@ + } + /*@=moduncon@*/ + ++#if 0 + #ifdef IFF_LOOPBACK + /* None of the current callers want loopback addresses. */ + if (ifreq.ifr_flags & IFF_LOOPBACK) { + Tprintf ((" loopback\n")); + goto skip; + } ++#endif + #endif + /* Ignore interfaces that are down. */ + if ((ifreq.ifr_flags & IFF_UP) == 0) { |