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 310428 Details for
Bug 453084
Unable to set heartbeat interval for a one-to-one SCTP socket
[?]
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]
patch to set hb_interval for all transports on a 1:1 socket
linux-kernel-test.patch (text/plain), 1.33 KB, created by
Neil Horman
on 2008-06-27 12:01:42 UTC
(
hide
)
Description:
patch to set hb_interval for all transports on a 1:1 socket
Filename:
MIME Type:
Creator:
Neil Horman
Created:
2008-06-27 12:01:42 UTC
Size:
1.33 KB
patch
obsolete
>diff -up linux-2.6.9/net/sctp/socket.c.orig linux-2.6.9/net/sctp/socket.c >--- linux-2.6.9/net/sctp/socket.c.orig 2008-06-27 07:41:23.000000000 -0400 >+++ linux-2.6.9/net/sctp/socket.c 2008-06-27 08:00:12.000000000 -0400 >@@ -1738,6 +1738,7 @@ static int sctp_setsockopt_peer_addr_par > char __user *optval, int optlen) > { > struct sctp_paddrparams params; >+ struct sctp_association *assoc; > struct sctp_transport *trans; > int error; > >@@ -1769,7 +1770,22 @@ static int sctp_setsockopt_peer_addr_par > if (sctp_max_retrans_path) > sctp_sk(sk)->paddrparam.spp_pathmaxrxt = > params.spp_pathmaxrxt; >- return 0; >+ if (sctp_style(sk, TCP)) { >+ /* >+ * For 1:1 sockets we should also update all the >+ * transports in the sole association, since there >+ * won't be any additional associations >+ */ >+ assoc = sctp_id2assoc(sk, params.spp_assoc_id); >+ if (!assoc) >+ goto out; >+ list_for_each_entry(trans, >+ &assoc->peer.transport_addr_list, >+ transports) { >+ trans->hb_interval = msecs_to_jiffies(params.spp_hbinterval); >+ } >+ } >+ goto out; > } > > trans = sctp_addr_id2transport(sk, ¶ms.spp_address, >@@ -1809,7 +1825,7 @@ static int sctp_setsockopt_peer_addr_par > * before this address shall be considered unreachable. > */ > trans->error_threshold = params.spp_pathmaxrxt; >- >+out: > return 0; > } >
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 453084
: 310428 |
311312