/Linux-v5.4/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() 125 mreq.imr_interface.s_addr = 0; in umcast_open() 156 mreq.imr_multiaddr.s_addr = lsin->sin_addr.s_addr; in umcast_close() 157 mreq.imr_interface.s_addr = 0; in umcast_close()
|
/Linux-v5.4/net/sctp/ |
D | protocol.c | 89 addr->a.v4.sin_addr.s_addr = ifa->ifa_local; in sctp_v4_copy_addrlist() 225 sa->sin_addr.s_addr = ip_hdr(skb)->saddr; in sctp_v4_from_skb() 228 sa->sin_addr.s_addr = ip_hdr(skb)->daddr; in sctp_v4_from_skb() 237 addr->v4.sin_addr.s_addr = inet_sk(sk)->inet_rcv_saddr; in sctp_v4_from_sk() 243 inet_sk(sk)->inet_rcv_saddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_saddr() 249 inet_sk(sk)->inet_daddr = addr->v4.sin_addr.s_addr; in sctp_v4_to_sk_daddr() 259 addr->v4.sin_addr.s_addr = param->v4.addr.s_addr; in sctp_v4_from_addr_param() 272 param->v4.addr.s_addr = addr->v4.sin_addr.s_addr; in sctp_v4_to_addr_param() 283 saddr->v4.sin_addr.s_addr = fl4->saddr; in sctp_v4_dst_saddr() 294 if (addr1->v4.sin_addr.s_addr != addr2->v4.sin_addr.s_addr) in sctp_v4_cmp_addr() [all …]
|
/Linux-v5.4/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-v5.4/net/tipc/ |
D | udp_media.c | 102 return ipv4_is_multicast(addr->ipv4.s_addr); in tipc_udp_is_mcast_addr() 172 .daddr = dst->ipv4.s_addr, in tipc_udp_xmit() 173 .saddr = src->ipv4.s_addr, in tipc_udp_xmit() 186 udp_tunnel_xmit_skb(rt, ub->ubsock->sk, skb, src->ipv4.s_addr, in tipc_udp_xmit() 187 dst->ipv4.s_addr, 0, ttl, 0, src->port, in tipc_udp_xmit() 332 src.ipv4.s_addr = iphdr->saddr; in tipc_udp_rcast_disc() 418 ip4.sin_addr.s_addr = addr->ipv4.s_addr; in __tipc_nl_add_udp_addr() 580 addr->ipv4.s_addr = ip4->sin_addr.s_addr; in tipc_parse_udp_addr() 715 dev = __ip_dev_find(net, local.ipv4.s_addr, false); in tipc_udp_enable() 724 udp_conf.local_ip.s_addr = htonl(INADDR_ANY); in tipc_udp_enable() [all …]
|
/Linux-v5.4/net/l2tp/ |
D | l2tp_ip.c | 267 chk_addr_ret = inet_addr_type(net, addr->l2tp_addr.s_addr); in l2tp_ip_bind() 269 if (addr->l2tp_addr.s_addr && chk_addr_ret != RTN_LOCAL && in l2tp_ip_bind() 273 if (addr->l2tp_addr.s_addr) in l2tp_ip_bind() 274 inet->inet_rcv_saddr = inet->inet_saddr = addr->l2tp_addr.s_addr; in l2tp_ip_bind() 279 if (__l2tp_ip_bind_lookup(net, addr->l2tp_addr.s_addr, 0, in l2tp_ip_bind() 310 if (ipv4_is_multicast(lsa->l2tp_addr.s_addr)) in l2tp_ip_connect() 360 lsa->l2tp_addr.s_addr = inet->inet_daddr; in l2tp_ip_getname() 366 lsa->l2tp_addr.s_addr = addr; in l2tp_ip_getname() 420 daddr = lip->l2tp_addr.s_addr; in l2tp_ip_sendmsg() 543 sin->sin_addr.s_addr = ip_hdr(skb)->saddr; in l2tp_ip_recvmsg()
|
/Linux-v5.4/drivers/net/ppp/ |
D | pptp.c | 52 static struct pppox_sock *lookup_chan(u16 call_id, __be32 s_addr) in lookup_chan() argument 61 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan() 85 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst() 155 opt->dst_addr.sin_addr.s_addr, in pptp_xmit() 156 opt->src_addr.sin_addr.s_addr, in pptp_xmit() 419 if (lookup_chan_dst(sp->sa_addr.pptp.call_id, sp->sa_addr.pptp.sin_addr.s_addr)) in pptp_connect() 435 if (!opt->src_addr.sin_addr.s_addr || !sp->sa_addr.pptp.sin_addr.s_addr) { in pptp_connect() 444 opt->dst_addr.sin_addr.s_addr, in pptp_connect() 445 opt->src_addr.sin_addr.s_addr, in pptp_connect()
|
/Linux-v5.4/net/ipv4/ |
D | ip_sockglue.c | 60 info.ipi_addr.s_addr = ip_hdr(skb)->daddr; in ip_cmsg_recv_pktinfo() 164 sin.sin_addr.s_addr = ip_hdr(skb)->daddr; in ip_cmsg_recv_dstaddr() 296 ipc->addr = info->ipi_spec_dst.s_addr; in ip_cmsg_send() 493 info->ipi_spec_dst.s_addr = ip_hdr(skb)->saddr; in ipv4_datagram_support_cmsg() 533 sin->sin_addr.s_addr = *(__be32 *)(skb_network_header(skb) + in ip_recv_error() 546 sin->sin_addr.s_addr = ip_hdr(skb)->saddr; in ip_recv_error() 872 if (mreq.imr_address.s_addr == htonl(INADDR_ANY)) { in do_ip_setsockopt() 878 dev = ip_dev_find(sock_net(sk), mreq.imr_address.s_addr); in do_ip_setsockopt() 900 inet->mc_addr = mreq.imr_address.s_addr; in do_ip_setsockopt() 986 mreq.imr_multiaddr.s_addr = mreqs.imr_multiaddr; in do_ip_setsockopt() [all …]
|
D | igmp.c | 1820 if (imr->imr_address.s_addr) { in ip_mc_find_dev() 1821 dev = __ip_dev_find(net, imr->imr_address.s_addr, false); in ip_mc_find_dev() 1828 imr->imr_multiaddr.s_addr, in ip_mc_find_dev() 2159 __be32 addr = imr->imr_multiaddr.s_addr; in __ip_mc_join_group() 2183 if (i->multi.imr_multiaddr.s_addr == addr && in __ip_mc_join_group() 2230 return ip_mc_del_src(in_dev, &iml->multi.imr_multiaddr.s_addr, in ip_mc_leave_src() 2233 err = ip_mc_del_src(in_dev, &iml->multi.imr_multiaddr.s_addr, in ip_mc_leave_src() 2249 __be32 group = imr->imr_multiaddr.s_addr; in ip_mc_leave_group() 2256 if (!imr->imr_ifindex && !imr->imr_address.s_addr && !in_dev) { in ip_mc_leave_group() 2264 if (iml->multi.imr_multiaddr.s_addr != group) in ip_mc_leave_group() [all …]
|
/Linux-v5.4/tools/testing/selftests/networking/timestamping/ |
D | timestamping.c | 382 addr.sin_addr.s_addr = htonl(INADDR_ANY); in main() 392 imr.imr_multiaddr.s_addr = iaddr.s_addr; in main() 393 imr.imr_interface.s_addr = in main() 394 ((struct sockaddr_in *)&device.ifr_addr)->sin_addr.s_addr; in main() 396 &imr.imr_interface.s_addr, sizeof(struct in_addr)) < 0) in main()
|
/Linux-v5.4/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() 558 if (sin->sin_addr.s_addr == htonl(INADDR_ANY)) { in rds_connect() 562 if (ipv4_is_multicast(sin->sin_addr.s_addr) || in rds_connect() 563 sin->sin_addr.s_addr == htonl(INADDR_BROADCAST)) { in rds_connect() 567 ipv6_addr_set_v4mapped(sin->sin_addr.s_addr, &rs->rs_conn_addr); in rds_connect()
|
/Linux-v5.4/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-v5.4/net/netlabel/ |
D | netlabel_unlabeled.c | 242 entry->list.addr = addr->s_addr & mask->s_addr; in netlbl_unlhsh_add_addr4() 243 entry->list.mask = mask->s_addr; in netlbl_unlhsh_add_addr4() 414 addr4->s_addr, in netlbl_unlhsh_add() 415 mask4->s_addr); in netlbl_unlhsh_add() 479 list_entry = netlbl_af4list_remove(addr->s_addr, mask->s_addr, in netlbl_unlhsh_remove_addr4() 493 addr->s_addr, mask->s_addr); in netlbl_unlhsh_remove_addr4() 1100 addr_struct.s_addr = addr4->list.addr; in netlbl_unlabel_staticlist_gen() 1103 addr_struct.s_addr); in netlbl_unlabel_staticlist_gen() 1107 addr_struct.s_addr = addr4->list.mask; in netlbl_unlabel_staticlist_gen() 1110 addr_struct.s_addr); in netlbl_unlabel_staticlist_gen()
|
D | netlabel_mgmt.c | 178 map->list.addr = addr->s_addr & mask->s_addr; in netlbl_mgmt_add_common() 179 map->list.mask = mask->s_addr; in netlbl_mgmt_add_common() 317 addr_struct.s_addr = iter4->addr; in netlbl_mgmt_listentry() 319 addr_struct.s_addr); in netlbl_mgmt_listentry() 322 addr_struct.s_addr = iter4->mask; in netlbl_mgmt_listentry() 324 addr_struct.s_addr); in netlbl_mgmt_listentry()
|
/Linux-v5.4/tools/testing/selftests/net/ |
D | reuseport_addr_any.c | 44 addr4.sin_addr.s_addr = htonl(INADDR_ANY); in build_rcv_fd() 45 else if (!inet_pton(family, addr_str, &addr4.sin_addr.s_addr)) in build_rcv_fd() 109 saddr4.sin_addr.s_addr = htonl(INADDR_ANY); in connect_and_send() 113 if (!inet_pton(family, IP4_ADDR, &daddr4.sin_addr.s_addr)) in connect_and_send()
|
D | psock_lib.h | 89 saddr.sin_addr.s_addr = htonl(INADDR_LOOPBACK); in pair_udp_open() 94 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_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()
|
/Linux-v5.4/net/netfilter/ |
D | nf_flow_table_ip.c | 101 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.dst_v4.s_addr; in nf_flow_snat_ip() 106 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.src_v4.s_addr; in nf_flow_snat_ip() 126 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_REPLY].tuple.src_v4.s_addr; in nf_flow_dnat_ip() 131 new_addr = flow->tuplehash[FLOW_OFFLOAD_DIR_ORIGINAL].tuple.dst_v4.s_addr; in nf_flow_dnat_ip() 194 tuple->src_v4.s_addr = iph->saddr; in nf_flow_tuple_ip() 195 tuple->dst_v4.s_addr = iph->daddr; in nf_flow_tuple_ip() 296 nexthop = rt_nexthop(rt, flow->tuplehash[!dir].tuple.src_v4.s_addr); in nf_flow_offload_ip_hook()
|
/Linux-v5.4/tools/testing/selftests/bpf/ |
D | test_flow_dissector.c | 87 .sin_addr.s_addr = __constant_htonl(addr4), \ 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()
|
/Linux-v5.4/samples/bpf/ |
D | test_probe_write_user_user.c | 40 serv_addr_in->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in main() 52 mapped_addr_in->sin_addr.s_addr = inet_addr("255.255.255.255"); in main()
|
/Linux-v5.4/include/net/ |
D | vxlan.h | 387 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any() 395 return ipv4_is_multicast(ipa->sin.sin_addr.s_addr); in vxlan_addr_multicast() 402 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any() 407 return ipv4_is_multicast(ipa->sin.sin_addr.s_addr); in vxlan_addr_multicast()
|
/Linux-v5.4/drivers/net/ |
D | gtp.c | 147 pdp->ms_addr_ip4.s_addr == ms_addr) in ipv4_pdp_find() 165 return iph->daddr == pctx->ms_addr_ip4.s_addr; in gtp_check_ms_ipv4() 167 return iph->saddr == pctx->ms_addr_ip4.s_addr; in gtp_check_ms_ipv4() 510 rt = ip4_route_output_gtp(&fl4, pctx->sk, pctx->peer_addr_ip4.s_addr); in gtp_build_skb_ip4() 513 &pctx->peer_addr_ip4.s_addr); in gtp_build_skb_ip4() 520 &pctx->peer_addr_ip4.s_addr); in gtp_build_skb_ip4() 906 pctx->peer_addr_ip4.s_addr = in ipv4_pdp_fill() 908 pctx->ms_addr_ip4.s_addr = in ipv4_pdp_fill() 942 if (pctx->ms_addr_ip4.s_addr == ms_addr) { in ipv4_pdp_add() 1168 nla_put_be32(skb, GTPA_PEER_ADDRESS, pctx->peer_addr_ip4.s_addr) || in gtp_genl_fill_info() [all …]
|
/Linux-v5.4/drivers/scsi/ |
D | advansys.c | 3800 AscMemWordSetLram(PortAddr iop_base, ushort s_addr, ushort set_wval, int words) in AscMemWordSetLram() argument 3804 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordSetLram() 3840 AscMemWordCopyPtrToLram(PortAddr iop_base, ushort s_addr, in AscMemWordCopyPtrToLram() argument 3845 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordCopyPtrToLram() 3868 ushort s_addr, uchar *s_buffer, int dwords) in AscMemDWordCopyPtrToLram() argument 3872 AscSetChipLramAddr(iop_base, s_addr); in AscMemDWordCopyPtrToLram() 3887 ushort s_addr, uchar *d_buffer, int words) in AscMemWordCopyPtrFromLram() argument 3892 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordCopyPtrFromLram() 3900 static u32 AscMemSumLramWord(PortAddr iop_base, ushort s_addr, int words) in AscMemSumLramWord() argument 3905 for (i = 0; i < words; i++, s_addr += 2) { in AscMemSumLramWord() [all …]
|
/Linux-v5.4/drivers/infiniband/hw/qedr/ |
D | qedr_iw_cm.c | 55 laddr->sin_addr.s_addr = htonl(cm_info->local_ip[0]); in qedr_fill_sockaddr4() 56 raddr->sin_addr.s_addr = htonl(cm_info->remote_ip[0]); in qedr_fill_sockaddr4() 405 __be32 src_ip = src_in->sin_addr.s_addr; in qedr_addr4_resolve() 406 __be32 dst_ip = dst_in->sin_addr.s_addr; in qedr_addr4_resolve() 535 cm_info->remote_ip[0] = ntohl(raddr->sin_addr.s_addr); in qedr_iw_connect() 536 cm_info->local_ip[0] = ntohl(laddr->sin_addr.s_addr); in qedr_iw_connect() 631 iparams.ip_addr[0] = ntohl(laddr->sin_addr.s_addr); in qedr_iw_create_listen()
|