Home
last modified time | relevance | path

Searched refs:saddr4 (Results 1 – 13 of 13) sorted by relevance

/linux-6.12.1/tools/testing/selftests/net/
Dreuseport_addr_any.c103 struct sockaddr_in saddr4 = {0}; in connect_and_send() local
112 saddr4.sin_family = AF_INET; in connect_and_send()
113 saddr4.sin_addr.s_addr = htonl(INADDR_ANY); in connect_and_send()
114 saddr4.sin_port = 0; in connect_and_send()
121 sz = sizeof(saddr4); in connect_and_send()
122 saddr = (struct sockaddr *)&saddr4; in connect_and_send()
Dtcp_fastopen_backup_key.c143 struct sockaddr_in saddr4 = {0}; in connect_and_send() local
153 saddr4.sin_family = AF_INET; in connect_and_send()
154 saddr4.sin_addr.s_addr = htonl(INADDR_ANY); in connect_and_send()
155 saddr4.sin_port = 0; in connect_and_send()
162 sz = sizeof(saddr4); in connect_and_send()
163 saddr = (struct sockaddr *)&saddr4; in connect_and_send()
Dreuseport_bpf_numa.c110 struct sockaddr_in *saddr4, *daddr4; in send_from_node() local
116 saddr4 = (struct sockaddr_in *)&saddr; in send_from_node()
117 saddr4->sin_family = AF_INET; in send_from_node()
118 saddr4->sin_addr.s_addr = htonl(INADDR_ANY); in send_from_node()
119 saddr4->sin_port = 0; in send_from_node()
Dreuseport_bpf_cpu.c97 struct sockaddr_in *saddr4, *daddr4; in send_from_cpu() local
104 saddr4 = (struct sockaddr_in *)&saddr; in send_from_cpu()
105 saddr4->sin_family = AF_INET; in send_from_cpu()
106 saddr4->sin_addr.s_addr = htonl(INADDR_ANY); in send_from_cpu()
107 saddr4->sin_port = 0; in send_from_cpu()
/linux-6.12.1/tools/testing/selftests/net/tcp_ao/
Dicmps-accept.c364 struct sockaddr_in *saddr4 = src; in icmp_interfere() local
370 if (saddr4->sin_family != daddr4->sin_family) in icmp_interfere()
374 if (saddr4->sin_family == AF_INET) { in icmp_interfere()
376 rcv_nxt, saddr4, daddr4); in icmp_interfere()
378 rcv_nxt, saddr4, daddr4); in icmp_interfere()
380 rcv_nxt, saddr4, daddr4); in icmp_interfere()
382 } else if (saddr4->sin_family == AF_INET6) { in icmp_interfere()
Dicmps-discard.c364 struct sockaddr_in *saddr4 = src; in icmp_interfere() local
370 if (saddr4->sin_family != daddr4->sin_family) in icmp_interfere()
374 if (saddr4->sin_family == AF_INET) { in icmp_interfere()
376 rcv_nxt, saddr4, daddr4); in icmp_interfere()
378 rcv_nxt, saddr4, daddr4); in icmp_interfere()
380 rcv_nxt, saddr4, daddr4); in icmp_interfere()
382 } else if (saddr4->sin_family == AF_INET6) { in icmp_interfere()
/linux-6.12.1/tools/testing/selftests/net/mptcp/
Dpm_nl_ctl.c156 u_int32_t saddr4 = ntohl(*(__u32 *)RTA_DATA(attrs)); in capture_events() local
158 fprintf(stderr, ",saddr4:%u.%u.%u.%u", saddr4 >> 24, in capture_events()
159 (saddr4 >> 16) & 0xFF, (saddr4 >> 8) & 0xFF, in capture_events()
160 (saddr4 & 0xFF)); in capture_events()
Dmptcp_lib.sh540 saddr=$(mptcp_lib_evts_get_info saddr4 "${evt}" "${e_type}")
Duserspace_pm.sh523 saddr=$(mptcp_lib_evts_get_info saddr4 "$evt" $e_type)
/linux-6.12.1/fs/smb/client/
Dconnect.c1356 struct sockaddr_in *saddr4 = (struct sockaddr_in *)srcaddr; in cifs_ipaddr_cmp() local
1377 return memcmp(saddr4, vaddr4, in cifs_ipaddr_cmp()
1414 struct sockaddr_in *saddr4 = (struct sockaddr_in *)srcaddr; in cifs_match_ipaddr() local
1417 return (saddr4->sin_addr.s_addr == vaddr4->sin_addr.s_addr); in cifs_match_ipaddr()
2969 struct sockaddr_in *saddr4; in bind_socket() local
2972 saddr4 = (struct sockaddr_in *)&server->srcaddr; in bind_socket()
2979 &saddr4->sin_addr.s_addr, rc); in bind_socket()
Dcifsfs.c577 struct sockaddr_in *saddr4; in cifs_show_options() local
579 saddr4 = (struct sockaddr_in *)srcaddr; in cifs_show_options()
586 &saddr4->sin_addr.s_addr); in cifs_show_options()
/linux-6.12.1/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_router.c1400 u32 saddr4; in mlxsw_sp_ipip_entry_find_decap() local
1415 saddr4 = be32_to_cpu(saddr.addr4); in mlxsw_sp_ipip_entry_find_decap()
1416 saddrp = &saddr4; in mlxsw_sp_ipip_entry_find_decap()
1652 u32 saddr4; in mlxsw_sp_rif_ipip_lb_op() local
1657 saddr4 = be32_to_cpu(lb_cf.saddr.addr4); in mlxsw_sp_rif_ipip_lb_op()
1662 ul_rif_id, saddr4, in mlxsw_sp_rif_ipip_lb_op()
/linux-6.12.1/drivers/infiniband/core/
Dcma.c1629 const struct sockaddr_in *saddr4 = (const struct sockaddr_in *)saddr; in validate_net_dev() local
1636 validate_ipv4_net_dev(net_dev, daddr4, saddr4); in validate_net_dev()