/linux/tools/testing/selftests/net/ |
H A D | reuseport_bpf_cpu.c | 97 struct sockaddr_in *saddr4, *daddr4; in send_from_cpu() local 109 daddr4 = (struct sockaddr_in *)&daddr; in send_from_cpu() 110 daddr4->sin_family = AF_INET; in send_from_cpu() 111 daddr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in send_from_cpu() 112 daddr4->sin_port = htons(PORT); in send_from_cpu()
|
H A D | reuseport_bpf_numa.c | 110 struct sockaddr_in *saddr4, *daddr4; in send_from_node() local 121 daddr4 = (struct sockaddr_in *)&daddr; in send_from_node() 122 daddr4->sin_family = AF_INET; in send_from_node() 123 daddr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in send_from_node() 124 daddr4->sin_port = htons(PORT); in send_from_node()
|
H A D | reuseport_addr_any.c | 104 struct sockaddr_in daddr4 = {0}; in connect_and_send() local 116 daddr4.sin_family = AF_INET; in connect_and_send() 117 if (!inet_pton(family, IP4_ADDR, &daddr4.sin_addr.s_addr)) in connect_and_send() 119 daddr4.sin_port = htons(PORT); in connect_and_send() 123 daddr = (struct sockaddr *)&daddr4; in connect_and_send()
|
H A D | tcp_fastopen_backup_key.c | 144 struct sockaddr_in daddr4 = {0}; in connect_and_send() local 157 daddr4.sin_family = AF_INET; in connect_and_send() 158 if (!inet_pton(family, IP4_ADDR, &daddr4.sin_addr.s_addr)) in connect_and_send() 160 daddr4.sin_port = htons(PORT); in connect_and_send() 164 daddr = (struct sockaddr *)&daddr4; in connect_and_send()
|
/linux/tools/testing/selftests/net/tcp_ao/ |
H A D | icmps-accept.c | 365 struct sockaddr_in *daddr4 = dst; in icmp_interfere() local 370 if (saddr4->sin_family != daddr4->sin_family) 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()
|
H A D | icmps-discard.c | 365 struct sockaddr_in *daddr4 = dst; in icmp_interfere() local 370 if (saddr4->sin_family != daddr4->sin_family) 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()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_ipip.c | 175 __be32 daddr4 = mlxsw_sp_ipip_netdev_daddr4(ipip_entry->ol_dev); in mlxsw_sp_ipip_nexthop_update_gre4() local 182 mlxsw_reg_ratr_ipip4_entry_pack(ratr_pl, be32_to_cpu(daddr4)); in mlxsw_sp_ipip_nexthop_update_gre4() 198 u32 daddr4; in mlxsw_sp_ipip_decap_config_gre4() local 218 daddr4 = be32_to_cpu(mlxsw_sp_ipip_netdev_daddr4(ipip_entry->ol_dev)); in mlxsw_sp_ipip_decap_config_gre4() 221 type_check, has_ikey, daddr4, ikey); in mlxsw_sp_ipip_decap_config_gre4()
|
/linux/tools/testing/selftests/net/netfilter/ |
H A D | nft_fib.sh | 136 local daddr4=$1 139 if ! ip netns exec "$ns1" ping -c 1 -q "$daddr4" > /dev/null; then 141 echo "FAIL: ${ns1} cannot reach $daddr4, ret $ret" 1>&2
|
/linux/tools/testing/selftests/net/mptcp/ |
H A D | pm_nl_ctl.c | 168 u_int32_t daddr4 = ntohl(*(__u32 *)RTA_DATA(attrs)); in capture_events() local 170 fprintf(stderr, ",daddr4:%u.%u.%u.%u", daddr4 >> 24, in capture_events() 171 (daddr4 >> 16) & 0xFF, (daddr4 >> 8) & 0xFF, in capture_events() 172 (daddr4 & 0xFF)); in capture_events()
|
H A D | userspace_pm.sh | 269 addr=$(mptcp_lib_evts_get_info daddr4 "$evt" $e_type) 524 daddr=$(mptcp_lib_evts_get_info daddr4 "$evt" $e_type)
|
/linux/net/ipv4/ |
H A D | tcp_ao.c | 1479 __be32 daddr4 = sk->sk_v6_daddr.s6_addr32[3]; in tcp_ao_verify_ipv6() local 1483 if ((daddr4 & mask) != addr4) in tcp_ao_verify_ipv6()
|
/linux/drivers/infiniband/core/ |
H A D | cma.c | 1644 const struct sockaddr_in *daddr4 = (const struct sockaddr_in *)daddr; in validate_net_dev() local 1652 validate_ipv4_net_dev(net_dev, daddr4, saddr4); in validate_net_dev()
|