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 585210 Details for
Bug 821352
Corosync doesn't work with point-to-point connection
[?]
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]
Proposed patch
2012-05-17-0001-Correctly-handle-point-to-point-IP.patch (text/plain), 1.33 KB, created by
Jan Friesse
on 2012-05-17 12:52:00 UTC
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Jan Friesse
Created:
2012-05-17 12:52:00 UTC
Size:
1.33 KB
patch
obsolete
>From 8374290962b5666a6e3120348657b87a5b393592 Mon Sep 17 00:00:00 2001 >From: Jan Friesse <jfriesse@redhat.com> >Date: Thu, 17 May 2012 14:38:27 +0200 >Subject: [PATCH] Correctly handle point-to-point IP > >Main difference between IFA_LOCAL and IFA_ADDRESS: > >IFA_ADDRESS is prefix address, rather than local interface address. >It makes no difference for normally configured broadcast interfaces, >but for point-to-point IFA_ADDRESS is DESTINATION address, >local address is supplied in IFA_LOCAL attribute. > >We are now using IFA_LOCAL insted of IFA_ADDRESS to correctly find out >local address. > >Signed-off-by: Jan Friesse <jfriesse@redhat.com> >--- > exec/totemip.c | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) > >diff --git a/exec/totemip.c b/exec/totemip.c >index 31dd61e..5258c95 100644 >--- a/exec/totemip.c >+++ b/exec/totemip.c >@@ -596,9 +596,11 @@ int totemip_iface_check(struct totem_ip_address *bindnet, > > parse_rtattr(tb, IFA_MAX, IFA_RTA(ifa), len); > >- memcpy(ipaddr.addr, RTA_DATA(tb[IFA_ADDRESS]), TOTEMIP_ADDRLEN); >- if (totemip_equal(&ipaddr, bindnet)) { >- found_if = 1; >+ if (tb[IFA_LOCAL]) { >+ memcpy(ipaddr.addr, RTA_DATA(tb[IFA_LOCAL]), TOTEMIP_ADDRLEN); >+ if (totemip_equal(&ipaddr, bindnet)) { >+ found_if = 1; >+ } > } > > /* If the address we have is an IPv4 network address, then >-- >1.7.1 >
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 821352
: 585210