/linux-6.6.21/net/sctp/ |
D | protocol.c | 89 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_v4_copy_addrlist() 226 sa->sin_addr.s_addr = ip_hdr(skb)->saddr; in sctp_v4_from_skb() 229 sa->sin_addr.s_addr = ip_hdr(skb)->daddr; in sctp_v4_from_skb() 239 addr->v4.sin_addr.s_addr = inet_sk(sk)->inet_rcv_saddr; in sctp_v4_from_sk() 246 inet_sk(sk)->inet_rcv_saddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_saddr() 252 inet_sk(sk)->inet_daddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_daddr() 265 addr->v4.sin_addr.s_addr = param->v4.addr.s_addr; in sctp_v4_from_addr_param() 281 param->v4.addr.s_addr = addr->v4.sin_addr.s_addr; in sctp_v4_to_addr_param() 292 saddr->v4.sin_addr.s_addr = fl4->saddr; in sctp_v4_dst_saddr() 304 if (addr1->v4.sin_addr.s_addr != addr2->v4.sin_addr.s_addr) in sctp_v4_cmp_addr() [all …]
|
/linux-6.6.21/drivers/net/vxlan/ |
D | vxlan_private.h | 85 return a->sin.sin_addr.s_addr == b->sin.sin_addr.s_addr; in vxlan_addr_equal() 96 ip->sin.sin_addr.s_addr = nla_get_in_addr(nla); in vxlan_nla_get_addr() 110 return nla_put_in_addr(skb, attr, ip->sin.sin_addr.s_addr); in vxlan_nla_put_addr() 118 return ipv4_is_multicast(ip->sin.sin_addr.s_addr); in vxlan_addr_is_multicast() 126 return a->sin.sin_addr.s_addr == b->sin.sin_addr.s_addr; in vxlan_addr_equal() 135 ip->sin.sin_addr.s_addr = nla_get_in_addr(nla); in vxlan_nla_get_addr() 146 return nla_put_in_addr(skb, attr, ip->sin.sin_addr.s_addr); in vxlan_nla_put_addr() 151 return ipv4_is_multicast(ip->sin.sin_addr.s_addr); in vxlan_addr_is_multicast()
|
/linux-6.6.21/samples/bpf/ |
D | test_probe_write_user_user.c | 66 serv_addr_in->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in main() 72 ip = inet_ntoa(serv_addr_in->sin_addr); in main() 78 mapped_addr_in->sin_addr.s_addr = inet_addr("255.255.255.255"); in main() 84 ip = inet_ntoa(mapped_addr_in->sin_addr); in main() 90 ip = inet_ntoa(tmp_addr_in->sin_addr); in main() 97 ip = inet_ntoa(tmp_addr_in->sin_addr); in main()
|
D | cookie_uid_helper_example.c | 235 if (inet_aton("127.0.0.1", &si_other.sin_addr) == 0) in udp_client() 259 res = memcmp(&(si_other.sin_addr), &(si_me.sin_addr), in udp_client() 260 sizeof(si_me.sin_addr)); in udp_client()
|
/linux-6.6.21/arch/um/drivers/ |
D | umcast_user.c | 34 sin->sin_addr.s_addr = in_aton(addr); in new_addr() 36 sin->sin_addr.s_addr = INADDR_ANY; in new_addr() 73 if ((!pri->unicast && lsin->sin_addr.s_addr == 0) || in umcast_open() 74 (rsin->sin_addr.s_addr == 0) || in umcast_open() 124 mreq.imr_multiaddr.s_addr = lsin->sin_addr.s_addr; in umcast_open() 156 mreq.imr_multiaddr.s_addr = lsin->sin_addr.s_addr; in umcast_close()
|
/linux-6.6.21/include/linux/sunrpc/ |
D | addr.h | 56 return sin1->sin_addr.s_addr == sin2->sin_addr.s_addr; in rpc_cmp_addr4() 66 dsin->sin_addr.s_addr = ssin->sin_addr.s_addr; in __rpc_copy_addr4()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | probe_user.c | 55 in->sin_addr.s_addr = inet_addr("255.255.255.255"); in serial_test_probe_user() 73 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) in serial_test_probe_user() 81 inet_ntoa(in->sin_addr), ntohs(in->sin_port))) in serial_test_probe_user()
|
D | connect_ping.c | 25 .sin_addr.s_addr = htonl(INADDR_LOOPBACK), in subtest() 76 if (!ASSERT_EQ(sa4.sin_addr.s_addr, in subtest()
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | test_flow_dissector.c | 87 .sin_addr.s_addr = __constant_htonl(addr4), \ 126 off = __builtin_offsetof(struct sockaddr_in, sin_addr); in util_printaddr() 315 in_saddr4.sin_addr.s_addr, in build_packet() 316 in_daddr4.sin_addr.s_addr, in build_packet() 338 out_saddr4.sin_addr.s_addr, in build_packet() 339 out_daddr4.sin_addr.s_addr, in build_packet() 374 extra_saddr4.sin_addr.s_addr, in build_packet() 375 extra_daddr4.sin_addr.s_addr, in build_packet() 604 parse_addr(AF_INET, &addr->sin_addr, optarg); in parse_addr4()
|
/linux-6.6.21/net/rds/ |
D | bind.c | 182 sin->sin_addr.s_addr == htonl(INADDR_ANY) || in rds_bind() 183 sin->sin_addr.s_addr == htonl(INADDR_BROADCAST) || in rds_bind() 184 ipv4_is_multicast(sin->sin_addr.s_addr)) in rds_bind() 186 ipv6_addr_set_v4mapped(sin->sin_addr.s_addr, &v6addr); in rds_bind()
|
D | af_rds.c | 132 sin->sin_addr.s_addr = rs->rs_conn_addr_v4; in rds_getname() 179 sin->sin_addr.s_addr = rs->rs_bound_addr_v4; in rds_getname() 315 ipv6_addr_set_v4mapped(sin.sin_addr.s_addr, &sin6.sin6_addr); in rds_cancel_sent_to() 556 if (sin->sin_addr.s_addr == htonl(INADDR_ANY)) { in rds_connect() 560 if (ipv4_is_multicast(sin->sin_addr.s_addr) || in rds_connect() 561 sin->sin_addr.s_addr == htonl(INADDR_BROADCAST)) { in rds_connect() 565 ipv6_addr_set_v4mapped(sin->sin_addr.s_addr, &rs->rs_conn_addr); in rds_connect()
|
/linux-6.6.21/include/trace/events/ |
D | net_probe_common.h | 12 v4->sin_addr.s_addr = inet->inet_saddr; \ 16 v4->sin_addr.s_addr = inet->inet_daddr; \
|
/linux-6.6.21/tools/testing/selftests/net/ |
D | reuseport_addr_any.c | 48 addr4.sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_fd() 49 else if (!inet_pton(family, addr_str, &addr4.sin_addr.s_addr)) in build_rcv_fd() 113 saddr4.sin_addr.s_addr = htonl(INADDR_ANY); in connect_and_send() 117 if (!inet_pton(family, IP4_ADDR, &daddr4.sin_addr.s_addr)) in connect_and_send()
|
D | psock_lib.h | 91 saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open() 96 daddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open()
|
D | reuseport_dualstack.c | 42 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_fd() 79 saddr.sin_addr.s_addr = htonl(INADDR_ANY); in send_from_v4() 83 daddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in send_from_v4()
|
D | reuseport_bpf_cpu.c | 46 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_group() 106 saddr4->sin_addr.s_addr = htonl(INADDR_ANY); in send_from_cpu() 111 daddr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in send_from_cpu()
|
D | reuseport_bpf_numa.c | 42 addr4->sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_group() 118 saddr4->sin_addr.s_addr = htonl(INADDR_ANY); in send_from_node() 123 daddr4->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in send_from_node()
|
D | fin_ack_lat.c | 58 if (inet_pton(AF_INET, "127.0.0.1", &addr.sin_addr) <= 0) in client() 130 address.sin_addr.s_addr = INADDR_ANY; in main()
|
/linux-6.6.21/tools/testing/selftests/netfilter/ |
D | connect_close.c | 79 inet_pton(AF_INET, "127.0.0.1", &src.sin_addr); in accept_loop() 96 inet_pton(AF_INET, "127.0.0.1", &dst.sin_addr); in connect_loop()
|
D | sctp_collision.c | 29 saddr.sin_addr.s_addr = inet_addr(argv[2]); in main() 45 daddr.sin_addr.s_addr = inet_addr(argv[4]); in main()
|
/linux-6.6.21/net/rxrpc/ |
D | peer_event.c | 51 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_local_rcu() 56 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_local_rcu() 61 memcpy(&srx->transport.sin.sin_addr, &ip_hdr(skb)->saddr, in rxrpc_lookup_peer_local_rcu() 80 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_local_rcu()
|
D | peer_object.c | 45 size = sizeof(srx->transport.sin.sin_addr); in rxrpc_peer_hash_key() 46 p = (u16 *)&srx->transport.sin.sin_addr; in rxrpc_peer_hash_key() 95 memcmp(&peer->srx.transport.sin.sin_addr, in rxrpc_peer_cmp_key() 96 &srx->transport.sin.sin_addr, in rxrpc_peer_cmp_key() 169 peer->srx.transport.sin.sin_addr.s_addr, 0, in rxrpc_assess_MTU_size()
|
/linux-6.6.21/include/net/ |
D | vxlan.h | 455 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any() 463 return ipv4_is_multicast(ipa->sin.sin_addr.s_addr); in vxlan_addr_multicast() 470 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any() 475 return ipv4_is_multicast(ipa->sin.sin_addr.s_addr); in vxlan_addr_multicast() 570 rdst->remote_ip.sin.sin_addr.s_addr = nhc->nhc_gw.ipv4; in vxlan_fdb_nh_path_select()
|
/linux-6.6.21/drivers/net/ppp/ |
D | pptp.c | 62 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan() 86 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst() 141 po->proto.pptp.dst_addr.sin_addr.s_addr, in pptp_route_output() 142 po->proto.pptp.src_addr.sin_addr.s_addr, in pptp_route_output() 431 if (lookup_chan_dst(sp->sa_addr.pptp.call_id, sp->sa_addr.pptp.sin_addr.s_addr)) in pptp_connect() 447 if (!opt->src_addr.sin_addr.s_addr || !sp->sa_addr.pptp.sin_addr.s_addr) { in pptp_connect()
|
/linux-6.6.21/net/ipv4/ |
D | datagram.c | 40 if (ipv4_is_multicast(usin->sin_addr.s_addr)) { in __ip4_datagram_connect() 49 rt = ip_route_connect(fl4, usin->sin_addr.s_addr, saddr, oif, in __ip4_datagram_connect()
|