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 304645 Details for
Bug 444106
unable to select multicast (IPv4) source interface
[?]
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]
backported patch to fix selecting multicast interface
ntp-4.2.2p1-multicast.patch (text/plain), 1.54 KB, created by
Miroslav Lichvar
on 2008-05-06 15:33:47 UTC
(
hide
)
Description:
backported patch to fix selecting multicast interface
Filename:
MIME Type:
Creator:
Miroslav Lichvar
Created:
2008-05-06 15:33:47 UTC
Size:
1.54 KB
patch
obsolete
>diff -up ntp-4.2.2p1/ntpd/ntp_io.c.multicast ntp-4.2.2p1/ntpd/ntp_io.c >--- ntp-4.2.2p1/ntpd/ntp_io.c.multicast 2008-05-06 16:29:08.000000000 +0200 >+++ ntp-4.2.2p1/ntpd/ntp_io.c 2008-05-06 17:13:39.000000000 +0200 >@@ -2668,9 +2668,24 @@ findlocalcastinterface( > { > int i; > int nif = -1; >- > #ifdef INCLUDE_IPV6_MULTICAST_SUPPORT > isc_boolean_t want_linklocal = ISC_FALSE; >+#endif >+ >+ /* >+ * see how kernel maps the mcast address >+ */ >+ nif = findlocalinterface(addr); >+ >+ if (nif >= 0) { >+#ifdef DEBUG >+ if (debug>2) >+ printf("findlocalcastinterface: kernel recommends interface #%d %s\n", nif, inter_list[nif].name); >+#endif >+ return nif; >+ } >+ >+#ifdef INCLUDE_IPV6_MULTICAST_SUPPORT > if (addr_ismulticast(addr) && flags == INT_MULTICAST) > { > if (IN6_IS_ADDR_MC_LINKLOCAL(&((struct sockaddr_in6*)addr)->sin6_addr)) >@@ -2746,22 +2761,16 @@ findbcastinter( > stoa(addr)); > #endif > >- i = find_flagged_addr_in_list(addr, INT_BCASTOPEN|INT_MCASTOPEN); >+ i = findlocalinterface(addr); >+ if (i >= nwilds && !(inter_list[i].flags & INT_LOOPBACK)) >+ { > #ifdef DEBUG >- if (debug > 1) >- printf("Found bcastinter index %d\n", i); >+ if (debug > 1) >+ printf("Found bcastinter index %d\n", i); > #endif >- /* >- * Do nothing right now >- * Eventually we will find the interface this >- * way, but until it works properly we just see >- * which one we got >- */ >-/* if(i >= 0) >- { > return (&inter_list[i]); > } >-*/ >+ > for (i = nwilds; i < ninterfaces; i++) { > /* Don't bother with ignored interfaces */ > if (inter_list[i].ignore_packets == ISC_TRUE)
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 444106
: 304645