View Issue Details

IDProjectCategoryView StatusLast Update
0000137LDMud 3.3Networkingpublic2005-05-15 13:05
Reporterfippo Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.3 
Summary0000137: net_connect should by to --hostaddr
Descriptionnet_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);
TagsNo tags attached.

Activities

lars

2004-11-23 00:08

reporter   ~0000209

Corrected in 3.3.615 qnd 3.2-dev.675

Issue History

Date Modified Username Field Change
2004-10-23 12:02 fippo New Issue
2004-11-23 00:08 lars Status new => resolved
2004-11-23 00:08 lars Resolution open => fixed
2004-11-23 00:08 lars Assigned To => lars
2004-11-23 00:08 lars Note Added: 0000209
2004-11-23 00:08 lars Assigned To lars =>
2005-05-15 13:05 lars Status resolved => closed