Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 603173 Details for
Bug 711844
cannot automount NFSv4 over IPv6
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch - fix ipv6 name lookup check
autofs-5.0.6-fix-ipv6-name-lookup-check.patch (text/plain), 1.80 KB, created by
Ian Kent
on 2012-08-09 05:41:11 UTC
(
hide
)
Description:
Patch - fix ipv6 name lookup check
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2012-08-09 05:41:11 UTC
Size:
1.80 KB
patch
obsolete
>autofs-5.0.6 - fix ipv6 name lookup check > >From: Ian Kent <raven@themaw.net> > >The host address must be used when the host name has multiple >addresses since we need to mount the specific host and so that >it is known what host log entries refer to. > >But the check for multiple addresses can be wrong because there >is no distinction between ipv4 and ipv6 addresses. Change the >check to use the host name when mounting if neither the ipv4 >or the ipv6 addresses have more than one record. >--- > > CHANGELOG | 1 + > modules/replicated.c | 17 +++++++++++++++-- > 2 files changed, 16 insertions(+), 2 deletions(-) > > >--- autofs-5.0.6.orig/CHANGELOG >+++ autofs-5.0.6/CHANGELOG >@@ -14,6 +14,7 @@ > - fix fix map source check in file lookup. > - add disable move mount configure option. > - fix improve mount location error reporting. >+- fix ipv6 name lookup check. > > 28/06/2011 autofs-5.0.6 > ----------------------- >--- autofs-5.0.6.orig/modules/replicated.c >+++ autofs-5.0.6/modules/replicated.c >@@ -1117,7 +1117,7 @@ static int add_host_addrs(struct host ** > char *name = n_ptr = strdup(host); > int len; > char buf[MAX_ERR_BUF]; >- int rr = 0; >+ int rr = 0, rr4 = 0, rr6 = 0; > int ret; > > if (!name) { >@@ -1167,8 +1167,21 @@ try_name: > } > > this = ni; >- if (this->ai_next) >+ while (this->ai_next) { >+ if (this->ai_family == AF_INET) { >+ struct sockaddr_in *addr = (struct sockaddr_in *) this->ai_addr; >+ if (addr->sin_addr.s_addr != INADDR_LOOPBACK) >+ rr4++; >+ } else if (this->ai_family == AF_INET6) { >+ struct sockaddr_in6 *addr = (struct sockaddr_in6 *) this->ai_addr; >+ if (!IN6_IS_ADDR_LOOPBACK(addr->sin6_addr.__in6_u.__u6_addr32)) >+ rr6++; >+ } >+ this = this->ai_next; >+ } >+ if (rr4 > 1 || rr6 > 1) > rr++; >+ this = ni; > while (this) { > ret = add_new_host(list, host, weight, this, rr, options); > if (!ret)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 711844
:
503836
|
503837
| 603173 |
603174
|
603175
|
603177
|
603178