Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 484333 Details for
Bug 684930
ttl is set for udpu when it should use kernel defaults
Home
New
Search
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.rh92 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 to remove the ttl option from udpu and rely on the kernel ttl setting.
0002-Remove-the-ttl-option-from-udpu-and-rely-on-the-kern.patch (text/plain), 2.46 KB, created by
Angus Salkeld
on 2011-03-15 00:02:41 UTC
(
hide
)
Description:
Patch to remove the ttl option from udpu and rely on the kernel ttl setting.
Filename:
MIME Type:
Creator:
Angus Salkeld
Created:
2011-03-15 00:02:41 UTC
Size:
2.46 KB
patch
obsolete
>From b02ee2f6fb571b4d66924ed789bb413abfda9369 Mon Sep 17 00:00:00 2001 >From: Angus Salkeld <asalkeld@redhat.com> >Date: Tue, 15 Mar 2011 09:50:56 +1100 >Subject: [PATCH 2/3] Remove the ttl option from udpu and rely on the kernel ttl setting. > >Signed-off-by: Angus Salkeld <asalkeld@redhat.com> >--- > exec/totemconfig.c | 5 +++++ > exec/totemudpu.c | 21 --------------------- > man/corosync.conf.5 | 1 + > 3 files changed, 6 insertions(+), 21 deletions(-) > >diff --git a/exec/totemconfig.c b/exec/totemconfig.c >index 7039ba0..0b9732b 100644 >--- a/exec/totemconfig.c >+++ b/exec/totemconfig.c >@@ -477,6 +477,11 @@ int totem_config_validate ( > error_reason = "Invalid TTL (should be 0..255)"; > goto parse_error; > } >+ if (totem_config->transport_number != TOTEM_TRANSPORT_UDP && >+ totem_config->interfaces[i].ttl != 1) { >+ error_reason = "Can only set ttl on multicast transport types"; >+ goto parse_error; >+ } > > if (totem_config->interfaces[i].mcast_addr.family == AF_INET6 && > totem_config->node_id == 0) { >diff --git a/exec/totemudpu.c b/exec/totemudpu.c >index 1cf3cf6..2d6a3da 100644 >--- a/exec/totemudpu.c >+++ b/exec/totemudpu.c >@@ -1302,7 +1302,6 @@ static int totemudpu_build_sockets_ip ( > struct sockaddr_storage sockaddr; > int addrlen; > int res; >- int flag; > unsigned int recvbuf_size; > unsigned int optlen = sizeof (recvbuf_size); > >@@ -1326,26 +1325,6 @@ static int totemudpu_build_sockets_ip ( > } > > /* >- * Set packets TTL >- */ >- flag = instance->totem_interface->ttl; >- if (bindnet_address->family == AF_INET6) { >- res = setsockopt (instance->token_socket, IPPROTO_IPV6, >- IPV6_UNICAST_HOPS, &flag, sizeof (flag)); >- if (res == -1) { >- perror ("set udpu v6 TTL"); >- return (-1); >- } >- } else { >- res = setsockopt(instance->token_socket, IPPROTO_IP, IP_TTL, >- &flag, sizeof(flag)); >- if (res == -1) { >- perror ("set udpu v4 TTL"); >- return (-1); >- } >- } >- >- /* > * Bind to unicast socket used for token send/receives > * This has the side effect of binding to the correct interface > */ >diff --git a/man/corosync.conf.5 b/man/corosync.conf.5 >index eaf58c4..2ebf802 100644 >--- a/man/corosync.conf.5 >+++ b/man/corosync.conf.5 >@@ -132,6 +132,7 @@ ttl > This specifies the Time To Live (TTL). If you run your cluster on a routed > network then the default of "1" will be too small. This option provides > a way to increase this up to 255. The valid range is 0..255. >+Note that this is only valid on multicast transport types. > > .TP > member >-- >1.7.4.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 684930
: 484333