Home
last modified time | relevance | path

Searched refs:sock_in6 (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.10/drivers/target/iscsi/
Discsi_target_login.c951 struct sockaddr_in6 sock_in6; in iscsit_accept_np() local
962 memset(&sock_in6, 0, sizeof(struct sockaddr_in6)); in iscsit_accept_np()
965 (struct sockaddr *)&sock_in6, 1); in iscsit_accept_np()
967 if (!ipv6_addr_v4mapped(&sock_in6.sin6_addr)) { in iscsit_accept_np()
968 memcpy(&conn->login_sockaddr, &sock_in6, sizeof(sock_in6)); in iscsit_accept_np()
972 sock_in.sin_port = sock_in6.sin6_port; in iscsit_accept_np()
973 memcpy(&sock_in.sin_addr, &sock_in6.sin6_addr.s6_addr32[3], 4); in iscsit_accept_np()
979 (struct sockaddr *)&sock_in6, 0); in iscsit_accept_np()
981 if (!ipv6_addr_v4mapped(&sock_in6.sin6_addr)) { in iscsit_accept_np()
982 memcpy(&conn->local_sockaddr, &sock_in6, sizeof(sock_in6)); in iscsit_accept_np()
[all …]
Discsi_target.c270 struct sockaddr_in6 *sock_in6, *sock_in6_e; in iscsit_check_np_match() local
275 sock_in6 = (struct sockaddr_in6 *)sockaddr; in iscsit_check_np_match()
278 if (!memcmp(&sock_in6->sin6_addr.in6_u, in iscsit_check_np_match()
283 port = ntohs(sock_in6->sin6_port); in iscsit_check_np_match()
/Linux-v5.10/drivers/target/iscsi/cxgbit/
Dcxgbit_main.c545 struct sockaddr_in6 *sock_in6; in cxgbit_update_dcb_priority() local
547 sock_in6 = (struct sockaddr_in6 *)&csk->com.local_addr; in cxgbit_update_dcb_priority()
548 local_port = ntohs(sock_in6->sin6_port); in cxgbit_update_dcb_priority()