Changeset View
Changeset View
Standalone View
Standalone View
usr.sbin/ctld/ctld.c
Show First 20 Lines • Show All 1,572 Lines • ▼ Show 20 Lines | connection_new(struct portal *portal, int fd, const char *host, | ||||
conn->conn_portal = portal; | conn->conn_portal = portal; | ||||
conn->conn_socket = fd; | conn->conn_socket = fd; | ||||
conn->conn_initiator_addr = checked_strdup(host); | conn->conn_initiator_addr = checked_strdup(host); | ||||
memcpy(&conn->conn_initiator_sa, client_sa, client_sa->sa_len); | memcpy(&conn->conn_initiator_sa, client_sa, client_sa->sa_len); | ||||
/* | /* | ||||
* Default values, from RFC 3720, section 12. | * Default values, from RFC 3720, section 12. | ||||
*/ | */ | ||||
conn->conn_max_data_segment_length = 8192; | conn->conn_max_recv_data_segment_length = 8192; | ||||
conn->conn_max_burst_length = 262144; | conn->conn_max_burst_length = 262144; | ||||
conn->conn_first_burst_length = 65536; | |||||
conn->conn_immediate_data = true; | conn->conn_immediate_data = true; | ||||
return (conn); | return (conn); | ||||
} | } | ||||
#if 0 | #if 0 | ||||
static void | static void | ||||
conf_print(struct conf *conf) | conf_print(struct conf *conf) | ||||
▲ Show 20 Lines • Show All 1,135 Lines • Show Last 20 Lines |