Home
last modified time | relevance | path

Searched refs:s_addr (Results 1 – 25 of 46) sorted by relevance

12

/drivers/net/ppp/
Dpptp.c57 static struct pppox_sock *lookup_chan(u16 call_id, __be32 s_addr) in lookup_chan() argument
66 if (opt->dst_addr.sin_addr.s_addr != s_addr) in lookup_chan()
90 opt->dst_addr.sin_addr.s_addr == d_addr) in lookup_chan_dst()
161 opt->dst_addr.sin_addr.s_addr, in pptp_xmit()
162 opt->src_addr.sin_addr.s_addr, in pptp_xmit()
430 if (lookup_chan_dst(sp->sa_addr.pptp.call_id, sp->sa_addr.pptp.sin_addr.s_addr)) in pptp_connect()
446 if (!opt->src_addr.sin_addr.s_addr || !sp->sa_addr.pptp.sin_addr.s_addr) { in pptp_connect()
455 opt->dst_addr.sin_addr.s_addr, in pptp_connect()
456 opt->src_addr.sin_addr.s_addr, in pptp_connect()
/drivers/net/
Dvxlan.c101 return a->sin.sin_addr.s_addr == b->sin.sin_addr.s_addr; in vxlan_addr_equal()
109 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any()
117 return IN_MULTICAST(ntohl(ipa->sin.sin_addr.s_addr)); in vxlan_addr_multicast()
127 ip->sin.sin_addr.s_addr = nla_get_in_addr(nla); in vxlan_nla_get_addr()
141 return nla_put_in_addr(skb, attr, ip->sin.sin_addr.s_addr); in vxlan_nla_put_addr()
149 return a->sin.sin_addr.s_addr == b->sin.sin_addr.s_addr; in vxlan_addr_equal()
154 return ipa->sin.sin_addr.s_addr == htonl(INADDR_ANY); in vxlan_addr_any()
159 return IN_MULTICAST(ntohl(ipa->sin.sin_addr.s_addr)); in vxlan_addr_multicast()
167 ip->sin.sin_addr.s_addr = nla_get_in_addr(nla); in vxlan_nla_get_addr()
178 return nla_put_in_addr(skb, attr, ip->sin.sin_addr.s_addr); in vxlan_nla_put_addr()
[all …]
Dgtp.c145 pdp->ms_addr_ip4.s_addr == ms_addr) in ipv4_pdp_find()
162 return iph->saddr != pctx->ms_addr_ip4.s_addr; in gtp_check_src_ms_ipv4()
524 pctx->sgsn_addr_ip4.s_addr); in gtp_build_skb_ip4()
527 &pctx->sgsn_addr_ip4.s_addr); in gtp_build_skb_ip4()
534 &pctx->sgsn_addr_ip4.s_addr); in gtp_build_skb_ip4()
895 pctx->sgsn_addr_ip4.s_addr = in ipv4_pdp_fill()
897 pctx->ms_addr_ip4.s_addr = in ipv4_pdp_fill()
930 if (pctx->ms_addr_ip4.s_addr == ms_addr) { in ipv4_pdp_add()
1115 nla_put_be32(skb, GTPA_SGSN_ADDRESS, pctx->sgsn_addr_ip4.s_addr) || in gtp_genl_fill_info()
1116 nla_put_be32(skb, GTPA_MS_ADDRESS, pctx->ms_addr_ip4.s_addr)) in gtp_genl_fill_info()
Dgeneve.c129 addr == geneve->remote.sin.sin_addr.s_addr) in geneve_lookup()
398 udp_conf.local_ip.s_addr = htonl(INADDR_ANY); in geneve_create_sock()
765 fl4->daddr = geneve->remote.sin.sin_addr.s_addr; in geneve_get_v4_rt()
1300 IN_MULTICAST(ntohl(remote->sin.sin_addr.s_addr))) || in geneve_configure()
1363 remote.sin.sin_addr.s_addr = in geneve_newlink()
1451 geneve->remote.sin.sin_addr.s_addr)) in geneve_fill_info()
/drivers/staging/lustre/lnet/lnet/
Dlib-socket.c131 val = ((struct sockaddr_in *)&ifr.ifr_addr)->sin_addr.s_addr; in lnet_ipif_query()
145 val = ((struct sockaddr_in *)&ifr.ifr_netmask)->sin_addr.s_addr; in lnet_ipif_query()
396 locaddr.sin_addr.s_addr = !local_ip ? in lnet_sock_create()
468 *ip = ntohl(sin.sin_addr.s_addr); in lnet_sock_getaddr()
569 srvaddr.sin_addr.s_addr = htonl(peer_ip); in lnet_sock_connect()
/drivers/scsi/
Dadvansys.c3804 AscMemWordSetLram(PortAddr iop_base, ushort s_addr, ushort set_wval, int words) in AscMemWordSetLram() argument
3808 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordSetLram()
3844 AscMemWordCopyPtrToLram(PortAddr iop_base, ushort s_addr, in AscMemWordCopyPtrToLram() argument
3849 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordCopyPtrToLram()
3872 ushort s_addr, uchar *s_buffer, int dwords) in AscMemDWordCopyPtrToLram() argument
3876 AscSetChipLramAddr(iop_base, s_addr); in AscMemDWordCopyPtrToLram()
3891 ushort s_addr, uchar *d_buffer, int words) in AscMemWordCopyPtrFromLram() argument
3896 AscSetChipLramAddr(iop_base, s_addr); in AscMemWordCopyPtrFromLram()
3904 static u32 AscMemSumLramWord(PortAddr iop_base, ushort s_addr, int words) in AscMemSumLramWord() argument
3909 for (i = 0; i < words; i++, s_addr += 2) { in AscMemSumLramWord()
[all …]
/drivers/isdn/mISDN/
Dl1oip_core.c299 if (!hc->sin_remote.sin_addr.s_addr || !hc->sin_remote.sin_port) { in l1oip_socket_send()
629 if ((hc->sin_remote.sin_addr.s_addr != sin->sin_addr.s_addr) in l1oip_socket_parse()
634 ntohl(hc->sin_remote.sin_addr.s_addr), in l1oip_socket_parse()
635 ntohl(sin->sin_addr.s_addr), in l1oip_socket_parse()
638 hc->sin_remote.sin_addr.s_addr = sin->sin_addr.s_addr; in l1oip_socket_parse()
680 hc->sin_local.sin_addr.s_addr = INADDR_ANY; in l1oip_socket_thread()
685 hc->sin_remote.sin_addr.s_addr = htonl(hc->remoteip); in l1oip_socket_thread()
877 hc->sin_remote.sin_addr.s_addr = 0; in l1oip_timeout()
/drivers/infiniband/sw/rxe/
Drxe_recv.c174 if (ip_hdr(skb)->daddr != saddr->s_addr) { in check_addr()
177 &saddr->s_addr); in check_addr()
181 if (ip_hdr(skb)->saddr != daddr->s_addr) { in check_addr()
184 &daddr->s_addr); in check_addr()
Drxe_net.c164 pr_err_ratelimited("no route to %pI4\n", &daddr->s_addr); in rxe_find_route4()
370 prepare_ipv4_hdr(dst, skb, saddr->s_addr, daddr->s_addr, IPPROTO_UDP, in prepare4()
/drivers/infiniband/core/
Daddr.c282 ((const struct sockaddr_in *)addr)->sin_addr.s_addr); in rdma_translate_ip()
398 (const void *)&dst_in4->sin_addr.s_addr : in fetch_ha()
414 __be32 src_ip = src_in->sin_addr.s_addr; in addr4_resolve()
415 __be32 dst_ip = dst_in->sin_addr.s_addr; in addr4_resolve()
430 src_in->sin_addr.s_addr = fl4.saddr; in addr4_resolve()
Dcma.c993 return ipv4_is_zeronet(((struct sockaddr_in *)addr)->sin_addr.s_addr); in cma_zero_addr()
1007 return ipv4_is_loopback(((struct sockaddr_in *) addr)->sin_addr.s_addr); in cma_loopback_addr()
1029 return ((struct sockaddr_in *) src)->sin_addr.s_addr != in cma_addr_cmp()
1030 ((struct sockaddr_in *) dst)->sin_addr.s_addr; in cma_addr_cmp()
1108 .sin_addr.s_addr = hdr->dst_addr.ip4.addr, in cma_save_ip4_info()
1116 .sin_addr.s_addr = hdr->src_addr.ip4.addr, in cma_save_ip4_info()
1241 __be32 daddr = dst_addr->sin_addr.s_addr, in validate_ipv4_net_dev()
1242 saddr = src_addr->sin_addr.s_addr; in validate_ipv4_net_dev()
1359 ip4_addr = ((struct sockaddr_in *)addr)->sin_addr.s_addr; in cma_match_private_data()
2600 ((struct sockaddr_in *) addr)->sin_addr.s_addr = htonl(INADDR_LOOPBACK); in cma_set_loopback()
[all …]
/drivers/net/ipvlan/
Dipvlan_core.c52 return jhash_1word(ip4_addr->s_addr, ipvlan_jhash_secret) & in ipvlan_get_v4_hash()
69 addr->ip4addr.s_addr == in ipvlan_ht_addr_lookup()
70 ((struct in_addr *)iaddr)->s_addr) in ipvlan_ht_addr_lookup()
102 addr->ip4addr.s_addr == ((struct in_addr *)iaddr)->s_addr)) in ipvlan_find_addr()
/drivers/infiniband/hw/nes/
Dnes_cm.c3161 if (raddr->sin_addr.s_addr != laddr->sin_addr.s_addr) { in nes_accept()
3274 ntohl(raddr->sin_addr.s_addr), ntohs(raddr->sin_port), in nes_accept()
3275 ntohl(laddr->sin_addr.s_addr), ntohs(laddr->sin_port), in nes_accept()
3381 ntohl(nesvnic->local_ipaddr), ntohl(raddr->sin_addr.s_addr), in nes_connect()
3382 ntohs(raddr->sin_port), ntohl(laddr->sin_addr.s_addr), in nes_connect()
3398 cm_info.loc_addr = ntohl(laddr->sin_addr.s_addr); in nes_connect()
3400 cm_info.rem_addr = ntohl(raddr->sin_addr.s_addr); in nes_connect()
3405 if (laddr->sin_addr.s_addr != raddr->sin_addr.s_addr) { in nes_connect()
3469 nesvnic->local_ipaddr, laddr->sin_addr.s_addr); in nes_create_listen()
3609 nesqp->hwqp.qp_id, ntohl(raddr->sin_addr.s_addr), in cm_event_connected()
[all …]
/drivers/scsi/cxgbi/cxgb3i/
Dcxgb3i.c168 req->local_ip = csk->saddr.sin_addr.s_addr; in send_act_open_req()
169 req->peer_ip = csk->daddr.sin_addr.s_addr; in send_act_open_req()
577 &csk->saddr.sin_addr.s_addr, ntohs(csk->saddr.sin_port), in do_act_open_rpl()
578 &csk->daddr.sin_addr.s_addr, ntohs(csk->daddr.sin_port)); in do_act_open_rpl()
967 csk->saddr.sin_addr.s_addr = chba->ipv4addr; in init_act_open()
971 &csk->daddr.sin_addr.s_addr); in init_act_open()
1003 &csk->saddr.sin_addr.s_addr, ntohs(csk->saddr.sin_port), in init_act_open()
1004 &csk->daddr.sin_addr.s_addr, ntohs(csk->daddr.sin_port)); in init_act_open()
/drivers/scsi/cxgbi/
Dlibcxgbi.c614 rt = find_route_ipv4(&fl4, 0, daddr->sin_addr.s_addr, 0, daddr->sin_port, 0); in cxgbi_check_route()
617 be32_to_cpu(daddr->sin_addr.s_addr), in cxgbi_check_route()
623 n = dst_neigh_lookup(dst, &daddr->sin_addr.s_addr); in cxgbi_check_route()
632 &daddr->sin_addr.s_addr, ntohs(daddr->sin_port), in cxgbi_check_route()
639 ndev = ip_dev_find(&init_net, daddr->sin_addr.s_addr); in cxgbi_check_route()
648 &daddr->sin_addr.s_addr, ndev->name); in cxgbi_check_route()
654 &daddr->sin_addr.s_addr, ntohs(daddr->sin_port), in cxgbi_check_route()
668 csk->daddr.sin_addr.s_addr = daddr->sin_addr.s_addr; in cxgbi_check_route()
672 csk->saddr.sin_addr.s_addr = fl4.saddr; in cxgbi_check_route()
886 &csk->saddr.sin_addr.s_addr, csk->saddr.sin_port, in cxgbi_sock_fail_act_open()
[all …]
/drivers/scsi/be2iscsi/
Dbe_mgmt.c301 __be32 s_addr = daddr_in->sin_addr.s_addr; in mgmt_open_connection() local
303 req->ip_address.addr[0] = s_addr & 0x000000ff; in mgmt_open_connection()
304 req->ip_address.addr[1] = (s_addr & 0x0000ff00) >> 8; in mgmt_open_connection()
305 req->ip_address.addr[2] = (s_addr & 0x00ff0000) >> 16; in mgmt_open_connection()
306 req->ip_address.addr[3] = (s_addr & 0xff000000) >> 24; in mgmt_open_connection()
308 beiscsi_ep->dst_addr = daddr_in->sin_addr.s_addr; in mgmt_open_connection()
/drivers/infiniband/hw/ocrdma/
Docrdma_ah.c135 ipv4.saddr = sgid_addr._sockaddr_in.sin_addr.s_addr; in set_av_attr()
137 ipv4.daddr = dgid_addr._sockaddr_in.sin_addr.s_addr; in set_av_attr()
/drivers/infiniband/hw/cxgb4/
Dcm.c811 req->local_ip = la->sin_addr.s_addr; in send_connect()
812 req->peer_ip = ra->sin_addr.s_addr; in send_connect()
1900 req->le.u.ipv4.lip = sin->sin_addr.s_addr; in send_fw_act_open_req()
1903 req->le.u.ipv4.pip = sin->sin_addr.s_addr; in send_fw_act_open_req()
2124 laddr->sin_addr.s_addr, in c4iw_reconnect()
2125 raddr->sin_addr.s_addr, in c4iw_reconnect()
2266 &la->sin_addr.s_addr, ntohs(la->sin_port), in act_open_rpl()
2267 &ra->sin_addr.s_addr, ntohs(ra->sin_port)); in act_open_rpl()
2526 sin->sin_addr.s_addr = *(__be32 *)local_ip; in pass_accept_req()
2532 sin->sin_addr.s_addr = *(__be32 *)local_ip; in pass_accept_req()
[all …]
/drivers/infiniband/hw/cxgb3/
Diwch_cm.c465 req->local_ip = ep->com.local_addr.sin_addr.s_addr; in send_connect()
466 req->peer_ip = ep->com.remote_addr.sin_addr.s_addr; in send_connect()
1216 req->local_ip = ep->com.local_addr.sin_addr.s_addr; in listen_start()
1401 child_ep->com.local_addr.sin_addr.s_addr = req->local_ip; in pass_accept_req()
1404 child_ep->com.remote_addr.sin_addr.s_addr = req->peer_ip; in pass_accept_req()
1882 dev = ip_dev_find(&init_net, raddr->sin_addr.s_addr); in is_loopback_dst()
1945 rt = find_route(h->rdev.t3cdev_p, laddr->sin_addr.s_addr, in iwch_connect()
1946 raddr->sin_addr.s_addr, laddr->sin_port, in iwch_connect()
1955 &raddr->sin_addr.s_addr); in iwch_connect()
/drivers/infiniband/hw/usnic/
Dusnic_transport.c196 &sock_addr)->sin_addr.s_addr); in usnic_transport_sock_get_addr()
/drivers/net/ethernet/aurora/
Dnb8800.c225 rxd->desc.s_addr = dma_addr; in nb8800_alloc_rx()
238 dma_addr_t dma = rxd->desc.s_addr; in nb8800_receive()
443 desc->s_addr = in nb8800_xmit()
451 desc->s_addr = dma_addr; in nb8800_xmit()
911 txd->desc[0].s_addr = in nb8800_dma_stop()
Dnb8800.h169 u32 s_addr; /* start address */ member
/drivers/scsi/qla2xxx/
Dqla_nx2.c2584 uint32_t r_addr, s_stride, s_addr, s_value, loop_cnt, i, r_value; in qla8044_minidump_process_rdmux() local
2592 s_addr = mux_hdr->select_addr; in qla8044_minidump_process_rdmux()
2598 qla8044_wr_reg_indirect(vha, s_addr, s_value); in qla8044_minidump_process_rdmux()
2612 uint32_t s_addr, r_addr; in qla8044_minidump_process_queue() local
2620 s_addr = q_hdr->select_addr; in qla8044_minidump_process_queue()
2626 qla8044_wr_reg_indirect(vha, s_addr, qid); in qla8044_minidump_process_queue()
2644 uint32_t r_addr, s_addr, s_value, r_value, poll_wait, poll_mask; in qla8044_minidump_process_pollrd() local
2650 s_addr = pollrd_hdr->select_addr; in qla8044_minidump_process_pollrd()
2659 qla8044_wr_reg_indirect(vha, s_addr, s_value); in qla8044_minidump_process_pollrd()
2662 qla8044_rd_reg_indirect(vha, s_addr, &r_value); in qla8044_minidump_process_pollrd()
/drivers/hsi/controllers/
Domap_ssi_port.c239 u32 s_addr; in ssi_start_dma() local
266 s_addr = omap_port->ssr_dma + in ssi_start_dma()
283 s_addr = sg_dma_address(msg->sgt.sgl); in ssi_start_dma()
288 lch, csdp, ccr, s_addr, d_addr); in ssi_start_dma()
293 writel_relaxed(s_addr, gdd + SSI_GDD_CSSA_REG(lch)); in ssi_start_dma()
/drivers/net/bonding/
Dbond_alb.c1001 struct sockaddr s_addr; in alb_set_slave_mac_addr() local
1011 memcpy(s_addr.sa_data, addr, dev->addr_len); in alb_set_slave_mac_addr()
1012 s_addr.sa_family = dev->type; in alb_set_slave_mac_addr()
1013 if (dev_set_mac_address(dev, &s_addr)) { in alb_set_slave_mac_addr()

12