Home
last modified time | relevance | path

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

/drivers/block/drbd/
Ddrbd_receiver.c593 int err, peer_addr_len, my_addr_len; in drbd_try_connect() local
608 my_addr_len = min_t(int, connection->my_addr_len, sizeof(src_in6)); in drbd_try_connect()
609 memcpy(&src_in6, &connection->my_addr, my_addr_len); in drbd_try_connect()
639 err = sock->ops->bind(sock, (struct sockaddr *) &src_in6, my_addr_len); in drbd_try_connect()
695 int err, sndbuf_size, rcvbuf_size, my_addr_len; in prepare_listen_socket() local
711 my_addr_len = min_t(int, connection->my_addr_len, sizeof(struct sockaddr_in6)); in prepare_listen_socket()
712 memcpy(&my_addr, &connection->my_addr, my_addr_len); in prepare_listen_socket()
726 err = s_listen->ops->bind(s_listen, (struct sockaddr *)&my_addr, my_addr_len); in prepare_listen_socket()
Ddrbd_nl.c333 if (connection->my_addr_len == 0 || connection->peer_addr_len == 0) in setup_khelper_env()
2600 if (nla_len(adm_ctx.my_addr) == connection->my_addr_len && in drbd_adm_connect()
2602 connection->my_addr_len)) { in drbd_adm_connect()
2668 connection->my_addr_len = nla_len(adm_ctx.my_addr); in drbd_adm_connect()
2669 memcpy(&connection->my_addr, nla_data(adm_ctx.my_addr), connection->my_addr_len); in drbd_adm_connect()
3269 if (connection->my_addr_len && in nla_put_drbd_cfg_context()
3270 nla_put(skb, T_ctx_my_addr, connection->my_addr_len, &connection->my_addr)) in nla_put_drbd_cfg_context()
Ddrbd_main.c2524 struct drbd_connection *conn_get_by_addrs(void *my_addr, int my_addr_len, in conn_get_by_addrs() argument
2533 if (connection->my_addr_len == my_addr_len && in conn_get_by_addrs()
2535 !memcmp(&connection->my_addr, my_addr, my_addr_len) && in conn_get_by_addrs()
Ddrbd_int.h706 int my_addr_len; member
1445 extern struct drbd_connection *conn_get_by_addrs(void *my_addr, int my_addr_len,
Ddrbd_state.c2067 connection->my_addr_len = 0; in w_after_conn_state_ch()