Lines Matching refs:peer_addr
214 adm_ctx->peer_addr = nested_attr_tb[__nla_type(T_ctx_peer_addr)]; in drbd_adm_prepare()
217 (adm_ctx->peer_addr && in drbd_adm_prepare()
218 nla_len(adm_ctx->peer_addr) > sizeof(adm_ctx->connection->peer_addr))) { in drbd_adm_prepare()
257 if (adm_ctx->my_addr && adm_ctx->peer_addr) in drbd_adm_prepare()
260 nla_data(adm_ctx->peer_addr), in drbd_adm_prepare()
261 nla_len(adm_ctx->peer_addr)); in drbd_adm_prepare()
335 switch (((struct sockaddr *)&connection->peer_addr)->sa_family) { in setup_khelper_env()
339 &((struct sockaddr_in6 *)&connection->peer_addr)->sin6_addr); in setup_khelper_env()
344 &((struct sockaddr_in *)&connection->peer_addr)->sin_addr); in setup_khelper_env()
349 &((struct sockaddr_in *)&connection->peer_addr)->sin_addr); in setup_khelper_env()
2582 if (!(adm_ctx.my_addr && adm_ctx.peer_addr)) { in drbd_adm_connect()
2600 if (nla_len(adm_ctx.peer_addr) == connection->peer_addr_len && in drbd_adm_connect()
2601 !memcmp(nla_data(adm_ctx.peer_addr), &connection->peer_addr, in drbd_adm_connect()
2663 connection->peer_addr_len = nla_len(adm_ctx.peer_addr); in drbd_adm_connect()
2664 memcpy(&connection->peer_addr, nla_data(adm_ctx.peer_addr), connection->peer_addr_len); in drbd_adm_connect()
3267 nla_put(skb, T_ctx_peer_addr, connection->peer_addr_len, &connection->peer_addr)) in nla_put_drbd_cfg_context()