diff options
Diffstat (limited to 'fs/dlm/lowcomms-tcp.c')
-rw-r--r-- | fs/dlm/lowcomms-tcp.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fs/dlm/lowcomms-tcp.c b/fs/dlm/lowcomms-tcp.c index ce5e7cdfb45d..b4fb5783ef8a 100644 --- a/fs/dlm/lowcomms-tcp.c +++ b/fs/dlm/lowcomms-tcp.c | |||
@@ -548,7 +548,7 @@ static void connect_to_sock(struct connection *con) | |||
548 | sock->sk->sk_user_data = con; | 548 | sock->sk->sk_user_data = con; |
549 | con->rx_action = receive_from_sock; | 549 | con->rx_action = receive_from_sock; |
550 | 550 | ||
551 | make_sockaddr(&saddr, dlm_config.tcp_port, &addr_len); | 551 | make_sockaddr(&saddr, dlm_config.ci_tcp_port, &addr_len); |
552 | 552 | ||
553 | add_sock(sock, con); | 553 | add_sock(sock, con); |
554 | 554 | ||
@@ -616,10 +616,10 @@ static struct socket *create_listen_sock(struct connection *con, | |||
616 | con->sock = sock; | 616 | con->sock = sock; |
617 | 617 | ||
618 | /* Bind to our port */ | 618 | /* Bind to our port */ |
619 | make_sockaddr(saddr, dlm_config.tcp_port, &addr_len); | 619 | make_sockaddr(saddr, dlm_config.ci_tcp_port, &addr_len); |
620 | result = sock->ops->bind(sock, (struct sockaddr *) saddr, addr_len); | 620 | result = sock->ops->bind(sock, (struct sockaddr *) saddr, addr_len); |
621 | if (result < 0) { | 621 | if (result < 0) { |
622 | printk("dlm: Can't bind to port %d\n", dlm_config.tcp_port); | 622 | printk("dlm: Can't bind to port %d\n", dlm_config.ci_tcp_port); |
623 | sock_release(sock); | 623 | sock_release(sock); |
624 | sock = NULL; | 624 | sock = NULL; |
625 | con->sock = NULL; | 625 | con->sock = NULL; |
@@ -638,7 +638,8 @@ static struct socket *create_listen_sock(struct connection *con, | |||
638 | 638 | ||
639 | result = sock->ops->listen(sock, 5); | 639 | result = sock->ops->listen(sock, 5); |
640 | if (result < 0) { | 640 | if (result < 0) { |
641 | printk("dlm: Can't listen on port %d\n", dlm_config.tcp_port); | 641 | printk("dlm: Can't listen on port %d\n", |
642 | dlm_config.ci_tcp_port); | ||
642 | sock_release(sock); | 643 | sock_release(sock); |
643 | sock = NULL; | 644 | sock = NULL; |
644 | goto create_out; | 645 | goto create_out; |