Home
last modified time | relevance | path

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

/openbmc/linux/drivers/target/iscsi/
H A Discsi_target_login.c911 struct sockaddr_in6 sock_in6; in iscsit_accept_np() local
922 memset(&sock_in6, 0, sizeof(struct sockaddr_in6)); in iscsit_accept_np()
925 (struct sockaddr *)&sock_in6, 1); in iscsit_accept_np()
927 if (!ipv6_addr_v4mapped(&sock_in6.sin6_addr)) { in iscsit_accept_np()
928 memcpy(&conn->login_sockaddr, &sock_in6, sizeof(sock_in6)); in iscsit_accept_np()
932 sock_in.sin_port = sock_in6.sin6_port; in iscsit_accept_np()
933 memcpy(&sock_in.sin_addr, &sock_in6.sin6_addr.s6_addr32[3], 4); in iscsit_accept_np()
939 (struct sockaddr *)&sock_in6, 0); in iscsit_accept_np()
941 if (!ipv6_addr_v4mapped(&sock_in6.sin6_addr)) { in iscsit_accept_np()
942 memcpy(&conn->local_sockaddr, &sock_in6, sizeof(sock_in6)); in iscsit_accept_np()
[all …]
H A Discsi_target.c271 struct sockaddr_in6 *sock_in6, *sock_in6_e; in iscsit_check_np_match() local
276 sock_in6 = (struct sockaddr_in6 *)sockaddr; in iscsit_check_np_match()
279 if (!memcmp(&sock_in6->sin6_addr.in6_u, in iscsit_check_np_match()
284 port = ntohs(sock_in6->sin6_port); in iscsit_check_np_match()
/openbmc/linux/drivers/target/iscsi/cxgbit/
H A Dcxgbit_main.c552 struct sockaddr_in6 *sock_in6; in cxgbit_update_dcb_priority() local
554 sock_in6 = (struct sockaddr_in6 *)&csk->com.local_addr; in cxgbit_update_dcb_priority()
555 local_port = ntohs(sock_in6->sin6_port); in cxgbit_update_dcb_priority()