Home
last modified time | relevance | path

Searched refs:sockaddr_in (Results 1 – 25 of 116) sorted by relevance

12345

/linux-2.6.39/include/linux/sunrpc/
Dclnt.h172 return ntohs(((struct sockaddr_in *)sap)->sin_port); in rpc_get_port()
184 ((struct sockaddr_in *)sap)->sin_port = htons(port); in rpc_set_port()
198 const struct sockaddr_in *sin1 = (const struct sockaddr_in *)sap1; in __rpc_cmp_addr4()
199 const struct sockaddr_in *sin2 = (const struct sockaddr_in *)sap2; in __rpc_cmp_addr4()
207 const struct sockaddr_in *ssin = (struct sockaddr_in *) src; in __rpc_copy_addr4()
208 struct sockaddr_in *dsin = (struct sockaddr_in *) dst; in __rpc_copy_addr4()
Dsvc_xprt.h147 const struct sockaddr_in *sin = (const struct sockaddr_in *)sa; in svc_addr_port()
164 return sizeof(struct sockaddr_in); in svc_addr_len()
185 const struct sockaddr_in *sin = (const struct sockaddr_in *)addr; in __svc_print_addr()
/linux-2.6.39/net/sunrpc/
Daddr.c112 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in rpc_ntop4()
142 struct sockaddr_in *sin = (struct sockaddr_in *)sap; in rpc_pton4()
145 if (buflen > INET_ADDRSTRLEN || salen < sizeof(struct sockaddr_in)) in rpc_pton4()
148 memset(sap, 0, sizeof(struct sockaddr_in)); in rpc_pton4()
154 return sizeof(struct sockaddr_in);; in rpc_pton4()
273 port = ntohs(((struct sockaddr_in *)sap)->sin_port); in rpc_sockaddr2uaddr()
346 ((struct sockaddr_in *)sap)->sin_port = htons(port); in rpc_uaddr2sockaddr()
347 return sizeof(struct sockaddr_in); in rpc_uaddr2sockaddr()
/linux-2.6.39/arch/um/drivers/
Dmcast_user.c24 static struct sockaddr_in *new_addr(char *addr, unsigned short port) in new_addr()
26 struct sockaddr_in *sin; in new_addr()
28 sin = uml_kmalloc(sizeof(struct sockaddr_in), UM_GFP_KERNEL); in new_addr()
60 struct sockaddr_in *sin = pri->mcast_addr; in mcast_open()
136 struct sockaddr_in *sin = pri->mcast_addr; in mcast_close()
151 struct sockaddr_in *data_addr = pri->mcast_addr; in mcast_user_write()
/linux-2.6.39/include/rdma/
Diw_cm.h61 struct sockaddr_in local_addr;
62 struct sockaddr_in remote_addr;
93 struct sockaddr_in local_addr;
94 struct sockaddr_in remote_addr;
/linux-2.6.39/include/linux/lockd/
Dlockd.h96 static inline struct sockaddr_in *nlm_addr_in(const struct nlm_host *host) in nlm_addr_in()
98 return (struct sockaddr_in *)&host->h_addr; in nlm_addr_in()
106 static inline struct sockaddr_in *nlm_srcaddr_in(const struct nlm_host *host) in nlm_srcaddr_in()
108 return (struct sockaddr_in *)&host->h_srcaddr; in nlm_srcaddr_in()
296 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; in __nlm_privileged_request4()
/linux-2.6.39/include/linux/
Dif_pppol2tp.h32 struct sockaddr_in addr; /* IP address and port to send to */
46 struct sockaddr_in addr; /* IP address and port to send to */
Drxrpc.h28 struct sockaddr_in sin; /* IPv4 transport address */
Dnfs_mount.h39 struct sockaddr_in addr; /* 1 */
/linux-2.6.39/net/rds/
Daf_rds.c131 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; in rds_getname()
219 struct sockaddr_in sin; in rds_cancel_sent_to()
228 if (len < sizeof(struct sockaddr_in)) { in rds_cancel_sent_to()
354 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; in rds_connect()
360 if (addr_len != sizeof(struct sockaddr_in)) { in rds_connect()
Dbind.c165 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; in rds_bind()
172 if (addr_len != sizeof(struct sockaddr_in) || in rds_bind()
Diw_rdma.c100 struct sockaddr_in *src_addr, *dst_addr;
102 src_addr = (struct sockaddr_in *)&i_cm_id->cm_id->route.addr.src_addr;
103 dst_addr = (struct sockaddr_in *)&i_cm_id->cm_id->route.addr.dst_addr;
179 struct sockaddr_in *src_addr, *dst_addr;
185 src_addr = (struct sockaddr_in *)&cm_id->route.addr.src_addr;
186 dst_addr = (struct sockaddr_in *)&cm_id->route.addr.dst_addr;
/linux-2.6.39/Documentation/networking/timestamping/
Dtimestamping.c159 struct sockaddr_in *from_addr = (struct sockaddr_in *)msg->msg_name; in printpacket()
287 struct sockaddr_in from_addr; in recvpacket()
332 struct sockaddr_in addr; in main()
410 sizeof(struct sockaddr_in)) < 0) in main()
418 ((struct sockaddr_in *)&device.ifr_addr)->sin_addr.s_addr; in main()
/linux-2.6.39/drivers/isdn/mISDN/
Dl1oip.h76 struct sockaddr_in sin_local; /* local socket name */
77 struct sockaddr_in sin_remote; /* remote socket name */
/linux-2.6.39/net/ipv4/
Ddatagram.c26 struct sockaddr_in *usin = (struct sockaddr_in *) uaddr; in ip4_datagram_connect()
Dip_sockglue.c133 struct sockaddr_in sin; in ip_cmsg_recv_dstaddr()
380 struct sockaddr_in *sin; in ip_recv_error()
383 struct sockaddr_in offender; in ip_recv_error()
406 sin = (struct sockaddr_in *)msg->msg_name; in ip_recv_error()
789 struct sockaddr_in *psin; in do_ip_setsockopt()
797 psin = (struct sockaddr_in *)&greq.gr_group; in do_ip_setsockopt()
817 struct sockaddr_in *psin; in do_ip_setsockopt()
831 psin = (struct sockaddr_in *)&greqs.gsr_group; in do_ip_setsockopt()
833 psin = (struct sockaddr_in *)&greqs.gsr_source; in do_ip_setsockopt()
846 psin = (struct sockaddr_in *)&greqs.gsr_group; in do_ip_setsockopt()
[all …]
/linux-2.6.39/drivers/infiniband/core/
Dcma.c692 ((struct sockaddr_in *)addr)->sin_addr.s_addr); in cma_zero_addr()
704 ((struct sockaddr_in *) addr)->sin_addr.s_addr); in cma_loopback_addr()
718 return ((struct sockaddr_in *) addr)->sin_port; in cma_port()
764 struct sockaddr_in *listen4, *ip4; in cma_save_net_info()
769 listen4 = (struct sockaddr_in *) &listen_addr->src_addr; in cma_save_net_info()
770 ip4 = (struct sockaddr_in *) &addr->src_addr; in cma_save_net_info()
775 ip4 = (struct sockaddr_in *) &addr->dst_addr; in cma_save_net_info()
1274 ip4_addr = ((struct sockaddr_in *) addr)->sin_addr.s_addr; in cma_set_compare_data()
1312 struct sockaddr_in *sin; in cma_iw_handler()
1324 sin = (struct sockaddr_in *) &id_priv->id.route.addr.src_addr; in cma_iw_handler()
[all …]
Daddr.c122 ((struct sockaddr_in *) addr)->sin_addr.s_addr); in rdma_translate_ip()
180 static int addr4_resolve(struct sockaddr_in *src_in, in addr4_resolve()
181 struct sockaddr_in *dst_in, in addr4_resolve()
297 return addr4_resolve((struct sockaddr_in *) src_in, in addr_resolve()
298 (struct sockaddr_in *) dst_in, addr); in addr_resolve()
/linux-2.6.39/net/sunrpc/xprtrdma/
Dtransport.c158 struct sockaddr_in *sin = (struct sockaddr_in *)sap; in xprt_rdma_format_addresses()
277 struct sockaddr_in *sin; in xprt_setup_rdma()
317 sin = (struct sockaddr_in *)&cdata.addr; in xprt_setup_rdma()
423 struct sockaddr_in *sap; in xprt_rdma_set_port()
425 sap = (struct sockaddr_in *)&xprt->addr; in xprt_rdma_set_port()
427 sap = (struct sockaddr_in *)&rpcx_to_rdmad(xprt).addr; in xprt_rdma_set_port()
/linux-2.6.39/fs/cifs/
Dcifs_spnego.c101 struct sockaddr_in *sa = (struct sockaddr_in *) &server->dstaddr; in cifs_get_spnego_key()
Dconnect.c1467 struct sockaddr_in *saddr4 = (struct sockaddr_in *)srcaddr; in srcip_matches()
1468 struct sockaddr_in *vaddr4 = (struct sockaddr_in *)rhs; in srcip_matches()
1494 sport = &((struct sockaddr_in *) &server->dstaddr)->sin_port; in match_port()
1495 port = ((struct sockaddr_in *) addr)->sin_port; in match_port()
1523 struct sockaddr_in *addr4 = (struct sockaddr_in *)addr; in match_address()
1524 struct sockaddr_in *srv_addr4 = in match_address()
1525 (struct sockaddr_in *)&server->dstaddr; in match_address()
1670 struct sockaddr_in *sin_server = (struct sockaddr_in *) &addr; in cifs_get_tcp_session()
1762 sizeof(struct sockaddr_in)); in cifs_get_tcp_session()
1879 struct sockaddr_in *addr = (struct sockaddr_in *)&server->dstaddr; in cifs_get_smb_ses()
[all …]
/linux-2.6.39/drivers/net/
Dcnic_if.h199 struct sockaddr_in v4;
203 struct sockaddr_in v4;
277 struct cnic_dev *(*cm_select_dev)(struct sockaddr_in *, int ulp_type);
/linux-2.6.39/drivers/infiniband/hw/cxgb3/
Diwch_cm.h161 struct sockaddr_in local_addr;
162 struct sockaddr_in remote_addr;
/linux-2.6.39/net/sctp/
Dprotocol.c760 struct sockaddr_in *sin; in sctp_inet_msgname()
762 sin = (struct sockaddr_in *)msgname; in sctp_inet_msgname()
763 *addr_len = sizeof(struct sockaddr_in); in sctp_inet_msgname()
772 struct sockaddr_in *sin, *sinfrom; in sctp_inet_event_msgname()
779 sin = (struct sockaddr_in *)msgname; in sctp_inet_event_msgname()
791 struct sockaddr_in *sin = (struct sockaddr_in *)msgname; in sctp_inet_skb_msgname()
965 .sockaddr_len = sizeof(struct sockaddr_in),
/linux-2.6.39/fs/nfsd/
Dcache.h23 struct sockaddr_in c_addr;

12345