Searched refs:my_addr_len (Results 1 – 5 of 5) sorted by relevance
/linux-6.12.1/drivers/block/drbd/ |
D | drbd_receiver.c | 595 int err, peer_addr_len, my_addr_len; in drbd_try_connect() local 610 my_addr_len = min_t(int, connection->my_addr_len, sizeof(src_in6)); in drbd_try_connect() 611 memcpy(&src_in6, &connection->my_addr, my_addr_len); in drbd_try_connect() 641 err = sock->ops->bind(sock, (struct sockaddr *) &src_in6, my_addr_len); in drbd_try_connect() 697 int err, sndbuf_size, rcvbuf_size, my_addr_len; in prepare_listen_socket() local 713 my_addr_len = min_t(int, connection->my_addr_len, sizeof(struct sockaddr_in6)); in prepare_listen_socket() 714 memcpy(&my_addr, &connection->my_addr, my_addr_len); in prepare_listen_socket() 728 err = s_listen->ops->bind(s_listen, (struct sockaddr *)&my_addr, my_addr_len); in prepare_listen_socket()
|
D | drbd_nl.c | 332 if (connection->my_addr_len == 0 || connection->peer_addr_len == 0) in setup_khelper_env() 2528 if (nla_len(adm_ctx.my_addr) == connection->my_addr_len && in drbd_adm_connect() 2530 connection->my_addr_len)) { in drbd_adm_connect() 2596 connection->my_addr_len = nla_len(adm_ctx.my_addr); in drbd_adm_connect() 2597 memcpy(&connection->my_addr, nla_data(adm_ctx.my_addr), connection->my_addr_len); in drbd_adm_connect() 3198 if (connection->my_addr_len && in nla_put_drbd_cfg_context() 3199 nla_put(skb, T_ctx_my_addr, connection->my_addr_len, &connection->my_addr)) in nla_put_drbd_cfg_context()
|
D | drbd_int.h | 634 int my_addr_len; member 1377 extern struct drbd_connection *conn_get_by_addrs(void *my_addr, int my_addr_len,
|
D | drbd_main.c | 2419 struct drbd_connection *conn_get_by_addrs(void *my_addr, int my_addr_len, in conn_get_by_addrs() argument 2428 if (connection->my_addr_len == my_addr_len && in conn_get_by_addrs() 2430 !memcmp(&connection->my_addr, my_addr, my_addr_len) && in conn_get_by_addrs()
|
D | drbd_state.c | 2077 connection->my_addr_len = 0; in w_after_conn_state_ch()
|