Home
last modified time | relevance | path

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

/drivers/block/drbd/
Ddrbd_nl.c332 if (connection->my_addr_len == 0 || connection->peer_addr_len == 0) in setup_khelper_env()
2522 if (nla_len(adm_ctx.peer_addr) == connection->peer_addr_len && in drbd_adm_connect()
2524 connection->peer_addr_len)) { in drbd_adm_connect()
2585 connection->peer_addr_len = nla_len(adm_ctx.peer_addr); in drbd_adm_connect()
2586 memcpy(&connection->peer_addr, nla_data(adm_ctx.peer_addr), connection->peer_addr_len); in drbd_adm_connect()
3187 if (connection->peer_addr_len && in nla_put_drbd_cfg_context()
3188 nla_put(skb, T_ctx_peer_addr, connection->peer_addr_len, &connection->peer_addr)) in nla_put_drbd_cfg_context()
Ddrbd_int.h704 int peer_addr_len; member
1439 void *peer_addr, int peer_addr_len);
Ddrbd_main.c2422 void *peer_addr, int peer_addr_len) in conn_get_by_addrs() argument
2431 connection->peer_addr_len == peer_addr_len && in conn_get_by_addrs()
2433 !memcmp(&connection->peer_addr, peer_addr, peer_addr_len)) { in conn_get_by_addrs()
Ddrbd_receiver.c596 int err, peer_addr_len, my_addr_len; in drbd_try_connect() local
619 peer_addr_len = min_t(int, connection->peer_addr_len, sizeof(src_in6)); in drbd_try_connect()
620 memcpy(&peer_in6, &connection->peer_addr, peer_addr_len); in drbd_try_connect()
650 err = sock->ops->connect(sock, (struct sockaddr *) &peer_in6, peer_addr_len, 0); in drbd_try_connect()
Ddrbd_state.c2069 connection->peer_addr_len = 0; in w_after_conn_state_ch()