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 628246 Details for
Bug 867054
dhcp6 support fixes
[?]
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]
allow reuse of ipv6 addr
dnsmasq-gc-ip6-reuseaddr-4.patch (text/plain), 1.26 KB, created by
Gene Czarcinski
on 2012-10-16 16:05:41 UTC
(
hide
)
Description:
allow reuse of ipv6 addr
Filename:
MIME Type:
Creator:
Gene Czarcinski
Created:
2012-10-16 16:05:41 UTC
Size:
1.26 KB
patch
obsolete
>diff -urp dnsmasq-2.63.orig-1/src/dhcp6.c dnsmasq-2.63/src/dhcp6.c >--- dnsmasq-2.63.orig-1/src/dhcp6.c 2012-08-16 09:04:05.000000000 -0400 >+++ dnsmasq-2.63/src/dhcp6.c 2012-10-13 14:42:55.569628608 -0400 >@@ -45,6 +45,25 @@ void dhcp6_init(void) > !set_ipv6pktinfo(fd)) > die (_("cannot create DHCPv6 socket: %s"), NULL, EC_BADNET); > >+ /* When bind-interfaces is set, there might be more than one dnmsasq >+ instance binding port 547. That's OK if they serve different networks. >+ Need to set REUSEADDR to make this posible, or REUSEPORT on *BSD. */ >+ if (option_bool(OPT_NOWILD) || option_bool(OPT_CLEVERBIND)) >+ { >+ int oneopt = 1; >+ int rc; >+#ifdef SO_REUSEPORT >+ rc = setsockopt(fd, SOL_SOCKET, SO_REUSEPORT, &oneopt, sizeof(oneopt)); >+#else >+ rc = setsockopt(fd, IPPROTO_IPV6, IPV6_V6ONLY, &oneopt, sizeof(oneopt)); >+ if (rc == -1) >+ die(_("failed to set IPV6_V6_ONLY on DHCPv6 socket: %s"), NULL, EC_BADNET); >+ rc = setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, &oneopt, sizeof(oneopt)); >+#endif >+ if (rc == -1) >+ die(_("failed to set SO_REUSE{ADDR|PORT} on DHCPv6 socket: %s"), NULL, EC_BADNET); >+ } >+ > memset(&saddr, 0, sizeof(saddr)); > #ifdef HAVE_SOCKADDR_SA_LEN > saddr.sin6_len = sizeof(struct sockaddr_in6);
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 867054
:
628246
|
628247
|
637482
|
637483
|
640770