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 484332 Details for
Bug 684928
multicast ttl changed from 255 to 1 in defaults for totem
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]
This patch fixes the ttl defaults and range
0001-Fix-the-ttl-defaults-and-range.patch (text/plain), 1.95 KB, created by
Angus Salkeld
on 2011-03-14 23:48:36 UTC
(
hide
)
Description:
This patch fixes the ttl defaults and range
Filename:
MIME Type:
Creator:
Angus Salkeld
Created:
2011-03-14 23:48:36 UTC
Size:
1.95 KB
patch
obsolete
>From d0b1067c655191b6a519ab9ef0530ebae9fe61f0 Mon Sep 17 00:00:00 2001 >From: Angus Salkeld <asalkeld@redhat.com> >Date: Tue, 15 Mar 2011 09:44:05 +1100 >Subject: [PATCH 1/3] Fix the ttl defaults and range > >1) both IPv4 and IPv6 mcast should default to ttl=1 >2) the range should be 0..255 > 0 is valid meaning localhost only (cluster of one) > >Signed-off-by: Angus Salkeld <asalkeld@redhat.com> >--- > exec/totemconfig.c | 10 +++------- > man/corosync.conf.5 | 2 +- > 2 files changed, 4 insertions(+), 8 deletions(-) > >diff --git a/exec/totemconfig.c b/exec/totemconfig.c >index 6bb4894..7039ba0 100644 >--- a/exec/totemconfig.c >+++ b/exec/totemconfig.c >@@ -394,11 +394,7 @@ printf ("couldn't find totem handle\n"); > /* > * Get the TTL > */ >- if (totem_config->interfaces[ringnumber].mcast_addr.family == AF_INET6) { >- totem_config->interfaces[ringnumber].ttl = 255; >- } else { >- totem_config->interfaces[ringnumber].ttl = 1; >- } >+ totem_config->interfaces[ringnumber].ttl = 1; > if (!objdb_get_string (objdb, object_interface_handle, "ttl", &str)) { > totem_config->interfaces[ringnumber].ttl = atoi (str); > } >@@ -477,8 +473,8 @@ int totem_config_validate ( > goto parse_error; > } > >- if (totem_config->interfaces[i].ttl > 255 || totem_config->interfaces[i].ttl < 1) { >- error_reason = "Invalid TTL (should be 1..255)"; >+ if (totem_config->interfaces[i].ttl > 255 || totem_config->interfaces[i].ttl < 0) { >+ error_reason = "Invalid TTL (should be 0..255)"; > goto parse_error; > } > >diff --git a/man/corosync.conf.5 b/man/corosync.conf.5 >index d69cf89..eaf58c4 100644 >--- a/man/corosync.conf.5 >+++ b/man/corosync.conf.5 >@@ -131,7 +131,7 @@ please configure the mcastports with a gap. > 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. >+a way to increase this up to 255. The valid range is 0..255. > > .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 684928
: 484332