Home
last modified time | relevance | path

Searched refs:my_addr_len (Results 1 – 5 of 5) sorted by relevance

/drivers/block/drbd/
Ddrbd_receiver.c596 int err, peer_addr_len, my_addr_len; in drbd_try_connect() local
611 my_addr_len = min_t(int, connection->my_addr_len, sizeof(src_in6)); in drbd_try_connect()
612 memcpy(&src_in6, &connection->my_addr, my_addr_len); in drbd_try_connect()
642 err = sock->ops->bind(sock, (struct sockaddr *) &src_in6, my_addr_len); in drbd_try_connect()
698 int err, sndbuf_size, rcvbuf_size, my_addr_len; in prepare_listen_socket() local
714 my_addr_len = min_t(int, connection->my_addr_len, sizeof(struct sockaddr_in6)); in prepare_listen_socket()
715 memcpy(&my_addr, &connection->my_addr, my_addr_len); in prepare_listen_socket()
729 err = s_listen->ops->bind(s_listen, (struct sockaddr *)&my_addr, my_addr_len); in prepare_listen_socket()
Ddrbd_nl.c332 if (connection->my_addr_len == 0 || connection->peer_addr_len == 0) in setup_khelper_env()
2515 if (nla_len(adm_ctx.my_addr) == connection->my_addr_len && in drbd_adm_connect()
2517 connection->my_addr_len)) { in drbd_adm_connect()
2583 connection->my_addr_len = nla_len(adm_ctx.my_addr); in drbd_adm_connect()
2584 memcpy(&connection->my_addr, nla_data(adm_ctx.my_addr), connection->my_addr_len); in drbd_adm_connect()
3184 if (connection->my_addr_len && in nla_put_drbd_cfg_context()
3185 nla_put(skb, T_ctx_my_addr, connection->my_addr_len, &connection->my_addr)) in nla_put_drbd_cfg_context()
Ddrbd_int.h702 int my_addr_len; member
1438 extern struct drbd_connection *conn_get_by_addrs(void *my_addr, int my_addr_len,
Ddrbd_main.c2421 struct drbd_connection *conn_get_by_addrs(void *my_addr, int my_addr_len, in conn_get_by_addrs() argument
2430 if (connection->my_addr_len == my_addr_len && in conn_get_by_addrs()
2432 !memcmp(&connection->my_addr, my_addr, my_addr_len) && in conn_get_by_addrs()
Ddrbd_state.c2068 connection->my_addr_len = 0; in w_after_conn_state_ch()