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 243831 Details for
Bug 358841
bind connections from known local address when using TCP
[?]
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.
dlm-lowcomms-tcp-src-upstream.patch (text/plain), 1.04 KB, created by
Lon Hohberger
on 2007-10-30 19:11:28 UTC
(
hide
)
Description:
Proposed patch.
Filename:
MIME Type:
Creator:
Lon Hohberger
Created:
2007-10-30 19:11:28 UTC
Size:
1.04 KB
patch
obsolete
>diff --git a/fs/dlm/lowcomms.c b/fs/dlm/lowcomms.c >index 9e9d2e8..80c4784 100644 >--- a/fs/dlm/lowcomms.c >+++ b/fs/dlm/lowcomms.c >@@ -872,7 +872,7 @@ static void sctp_init_assoc(struct connection *con) > static void tcp_connect_to_sock(struct connection *con) > { > int result = -EHOSTUNREACH; >- struct sockaddr_storage saddr; >+ struct sockaddr_storage saddr, src_addr; > int addr_len; > struct socket *sock; > >@@ -906,6 +906,17 @@ static void tcp_connect_to_sock(struct connection *con) > con->connect_action = tcp_connect_to_sock; > add_sock(sock, con); > >+ /* Bind to our cluster-known address connecting to avoid >+ routing problems */ >+ memcpy(&src_addr, dlm_local_addr[0], sizeof(src_addr)); >+ make_sockaddr(&src_addr, 0, &addr_len); >+ result = sock->ops->bind(sock, (struct sockaddr *) &src_addr, >+ addr_len); >+ if (result < 0) { >+ printk("dlm: could not bind for connect: %d\n", result); >+ /* This *may* not indicate a critical error */ >+ } >+ > make_sockaddr(&saddr, dlm_config.ci_tcp_port, &addr_len); > > log_print("connecting to %d", con->nodeid);
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 358841
: 243831