View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000137 | LDMud 3.3 | Networking | public | 2004-10-23 12:02 | 2005-05-15 13:05 |
| Reporter | fippo | Assigned To | |||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 3.3 | ||||
| Summary | 0000137: net_connect should by to --hostaddr | ||||
| Description | net_connect did not bind to the address given via --hostaddr on multihomed machines. Binding to host_ip_addr_template fixes that. --- comm.orig 2004-10-23 18:07:09.766629416 +0200 +++ comm.c 2004-10-23 21:01:25.596101728 +0200 @@ -9005,6 +9005,13 @@ set_socket_nonblocking(d); + ret = bind(d, (struct sockaddr *) &host_ip_addr_template, sizeof(host_ip_addr_template)); + if (ret == -1) { + perror("bind during net_connect"); + rc = errno; + break; + } + ret = connect(d, (struct sockaddr *) &target, sizeof(target)); #else d = ret = open_ipv6_conn(host, port, &target); | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2004-10-23 12:02 | fippo | New Issue | |
| 2004-11-23 00:08 |
|
Status | new => resolved |
| 2004-11-23 00:08 |
|
Resolution | open => fixed |
| 2004-11-23 00:08 |
|
Assigned To | => lars |
| 2004-11-23 00:08 |
|
Note Added: 0000209 | |
| 2004-11-23 00:08 |
|
Assigned To | lars => |
| 2005-05-15 13:05 |
|
Status | resolved => closed |