Searched refs:sin (Results 1 - 25 of 48) sorted by relevance

12

/net/rxrpc/
H A Dar-proc.c65 &trans->local->srx.transport.sin.sin_addr,
66 ntohs(trans->local->srx.transport.sin.sin_port));
69 &trans->peer->srx.transport.sin.sin_addr,
70 ntohs(trans->peer->srx.transport.sin.sin_port));
148 &trans->local->srx.transport.sin.sin_addr,
149 ntohs(trans->local->srx.transport.sin.sin_port));
152 &trans->peer->srx.transport.sin.sin_addr,
153 ntohs(trans->peer->srx.transport.sin.sin_port));
H A Dar-local.c138 &srx->transport.sin.sin_addr,
139 ntohs(srx->transport.sin.sin_port));
150 &local->srx.transport.sin.sin_addr,
151 ntohs(local->srx.transport.sin.sin_port));
159 if (local->srx.transport.sin.sin_port !=
160 srx->transport.sin.sin_port)
162 if (memcmp(&local->srx.transport.sin.sin_addr,
163 &srx->transport.sin.sin_addr,
196 &local->srx.transport.sin.sin_addr,
197 ntohs(local->srx.transport.sin
[all...]
H A Dar-transport.c87 &local->srx.transport.sin.sin_addr,
88 ntohs(local->srx.transport.sin.sin_port),
89 &peer->srx.transport.sin.sin_addr,
90 ntohs(peer->srx.transport.sin.sin_port));
159 &local->srx.transport.sin.sin_addr,
160 ntohs(local->srx.transport.sin.sin_port),
161 &peer->srx.transport.sin.sin_addr,
162 ntohs(peer->srx.transport.sin.sin_port));
H A Dar-peer.c44 peer->srx.transport.sin.sin_addr.s_addr, 0,
115 &srx->transport.sin.sin_addr,
116 ntohs(srx->transport.sin.sin_port));
172 &peer->srx.transport.sin.sin_addr,
173 ntohs(peer->srx.transport.sin.sin_port));
212 peer->srx.transport.sin.sin_port == port &&
213 peer->srx.transport.sin.sin_addr.s_addr == addr)
H A Dar-connevent.c86 msg.msg_name = &conn->trans->peer->srx.transport.sin;
87 msg.msg_namelen = sizeof(conn->trans->peer->srx.transport.sin);
335 struct sockaddr_in sin; member in union:__anon137
366 msg.msg_namelen = sizeof(sa.sin);
380 sa.sin.sin_port = udp_hdr(skb)->source;
381 sa.sin.sin_addr.s_addr = ip_hdr(skb)->saddr;
H A Dar-accept.c39 msg.msg_name = &srx->transport.sin;
40 msg.msg_namelen = sizeof(srx->transport.sin);
251 srx.transport.sin.sin_port = udp_hdr(skb)->source;
252 srx.transport.sin.sin_addr.s_addr = ip_hdr(skb)->saddr;
/net/rds/
H A Daf_rds.c130 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; local
133 memset(sin->sin_zero, 0, sizeof(sin->sin_zero));
140 sin->sin_port = rs->rs_conn_port;
141 sin->sin_addr.s_addr = rs->rs_conn_addr;
143 sin->sin_port = rs->rs_bound_port;
144 sin->sin_addr.s_addr = rs->rs_bound_addr;
147 sin->sin_family = AF_INET;
149 *uaddr_len = sizeof(*sin);
218 struct sockaddr_in sin; local
353 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; local
[all...]
H A Dbind.c165 struct sockaddr_in *sin = (struct sockaddr_in *)uaddr; local
173 sin->sin_family != AF_INET ||
175 sin->sin_addr.s_addr == htonl(INADDR_ANY)) {
180 ret = rds_add_bound(rs, sin->sin_addr.s_addr, &sin->sin_port);
184 trans = rds_trans_get_preferred(sin->sin_addr.s_addr);
H A Dtcp_listen.c140 struct sockaddr_in sin; local
156 sin.sin_family = PF_INET;
157 sin.sin_addr.s_addr = (__force u32)htonl(INADDR_ANY);
158 sin.sin_port = (__force u16)htons(RDS_TCP_PORT);
160 ret = sock->ops->bind(sock, (struct sockaddr *)&sin, sizeof(sin));
H A Drdma_transport.c158 struct sockaddr_in sin; local
171 sin.sin_family = AF_INET;
172 sin.sin_addr.s_addr = (__force u32)htonl(INADDR_ANY);
173 sin.sin_port = (__force u16)htons(RDS_PORT);
179 ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin);
H A Dtcp.c159 struct sockaddr_in sin; local
169 sock->ops->getname(sock, (struct sockaddr *)&sin, &sinlen, 0);
170 tsinfo.local_addr = sin.sin_addr.s_addr;
171 tsinfo.local_port = sin.sin_port;
172 sock->ops->getname(sock, (struct sockaddr *)&sin, &sinlen, 1);
173 tsinfo.peer_addr = sin.sin_addr.s_addr;
174 tsinfo.peer_port = sin.sin_port;
H A Diw.c225 struct sockaddr_in sin; local
234 memset(&sin, 0, sizeof(sin));
235 sin.sin_family = AF_INET;
236 sin.sin_addr.s_addr = addr;
239 ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin);
H A Dib.c324 struct sockaddr_in sin; local
333 memset(&sin, 0, sizeof(sin));
334 sin.sin_family = AF_INET;
335 sin.sin_addr.s_addr = addr;
338 ret = rdma_bind_addr(cm_id, (struct sockaddr *)&sin);
H A Drecv.c405 DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name);
482 if (sin) {
483 sin->sin_family = AF_INET;
484 sin->sin_port = inc->i_hdr.h_sport;
485 sin->sin_addr.s_addr = inc->i_saddr;
486 memset(sin->sin_zero, 0, sizeof(sin->sin_zero));
487 msg->msg_namelen = sizeof(*sin);
/net/ipv6/
H A Ddatagram.c91 struct sockaddr_in sin; local
97 sin.sin_family = AF_INET;
98 sin.sin_addr.s_addr = daddr->s6_addr32[3];
99 sin.sin_port = usin->sin6_port;
102 (struct sockaddr *) &sin,
103 sizeof(sin));
337 DECLARE_SOCKADDR(struct sockaddr_in6 *, sin, msg->msg_name);
363 if (sin) {
365 sin->sin6_family = AF_INET6;
366 sin
[all...]
H A Daf_inet6.c457 struct sockaddr_in6 *sin = (struct sockaddr_in6 *)uaddr; local
462 sin->sin6_family = AF_INET6;
463 sin->sin6_flowinfo = 0;
464 sin->sin6_scope_id = 0;
471 sin->sin6_port = inet->inet_dport;
472 sin->sin6_addr = sk->sk_v6_daddr;
474 sin->sin6_flowinfo = np->flow_label;
477 sin->sin6_addr = np->saddr;
479 sin->sin6_addr = sk->sk_v6_rcv_saddr;
481 sin
[all...]
/net/ipv4/netfilter/
H A Dnf_conntrack_l3proto_ipv4.c293 struct sockaddr_in sin; local
296 sin.sin_family = AF_INET;
297 sin.sin_port = ct->tuplehash[IP_CT_DIR_ORIGINAL]
299 sin.sin_addr.s_addr = ct->tuplehash[IP_CT_DIR_ORIGINAL]
301 memset(sin.sin_zero, 0, sizeof(sin.sin_zero));
304 &sin.sin_addr.s_addr, ntohs(sin.sin_port));
306 if (copy_to_user(user, &sin, sizeof(sin)) !
[all...]
/net/sunrpc/
H A Daddr.c114 const struct sockaddr_in *sin = (struct sockaddr_in *)sap; local
116 return snprintf(buf, buflen, "%pI4", &sin->sin_addr);
144 struct sockaddr_in *sin = (struct sockaddr_in *)sap; local
145 u8 *addr = (u8 *)&sin->sin_addr.s_addr;
155 sin->sin_family = AF_INET;
H A Dsvcsock.c837 struct sockaddr *sin = (struct sockaddr *) &addr; local
862 err = kernel_getpeername(newsock, sin, &slen);
873 if (!svc_port_is_privileged(sin)) {
876 __svc_print_addr(sin, buf, sizeof(buf)));
879 __svc_print_addr(sin, buf, sizeof(buf)));
890 svc_xprt_set_remote(&newsvsk->sk_xprt, sin, slen);
891 err = kernel_getsockname(newsock, sin, &slen);
896 svc_xprt_set_local(&newsvsk->sk_xprt, sin, slen);
1455 struct sockaddr *sin = (struct sockaddr *)&addr; local
1479 if (kernel_getsockname(svsk->sk_sock, sin,
1492 svc_create_socket(struct svc_serv *serv, int protocol, struct net *net, struct sockaddr *sin, int len, int flags) argument
1634 svc_bc_create_socket(struct svc_serv *serv, int protocol, struct net *net, struct sockaddr *sin, int len, int flags) argument
[all...]
/net/ipv4/
H A Dip_sockglue.c127 struct sockaddr_in sin; local
139 sin.sin_family = AF_INET;
140 sin.sin_addr.s_addr = iph->daddr;
141 sin.sin_port = ports[1];
142 memset(sin.sin_zero, 0, sizeof(sin.sin_zero));
144 put_cmsg(msg, SOL_IP, IP_ORIGDSTADDR, sizeof(sin), &sin);
409 DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name);
435 if (sin) {
[all...]
H A Ddevinet.c889 struct sockaddr_in *sin = (struct sockaddr_in *)&ifr.ifr_addr; local
907 memcpy(&sin_orig, sin, sizeof(*sin));
925 memset(sin, 0, sizeof(*sin));
926 sin->sin_family = AF_INET;
943 if (sin->sin_family != AF_INET)
996 sin->sin_addr.s_addr = ifa->ifa_local;
1000 sin->sin_addr.s_addr = ifa->ifa_broadcast;
1004 sin
[all...]
H A Draw.c701 DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name);
729 if (sin) {
730 sin->sin_family = AF_INET;
731 sin->sin_addr.s_addr = ip_hdr(skb)->saddr;
732 sin->sin_port = 0;
733 memset(&sin->sin_zero, 0, sizeof(sin->sin_zero));
734 *addr_len = sizeof(*sin);
/net/l2tp/
H A Dl2tp_ip.c515 DECLARE_SOCKADDR(struct sockaddr_in *, sin, msg->msg_name);
538 if (sin) {
539 sin->sin_family = AF_INET;
540 sin->sin_addr.s_addr = ip_hdr(skb)->saddr;
541 sin->sin_port = 0;
542 memset(&sin->sin_zero, 0, sizeof(sin->sin_zero));
543 *addr_len = sizeof(*sin);
/net/sunrpc/xprtrdma/
H A Dtransport.c164 struct sockaddr_in *sin = (struct sockaddr_in *)sap; local
175 snprintf(buf, sizeof(buf), "%08x", ntohl(sin->sin_addr.s_addr));
272 struct sockaddr_in *sin; local
312 sin = (struct sockaddr_in *)&cdata.addr;
313 if (ntohs(sin->sin_port) != 0)
317 __func__, &sin->sin_addr.s_addr, ntohs(sin->sin_port));
/net/sctp/
H A Dprotocol.c862 struct sockaddr_in *sin; local
864 sin = (struct sockaddr_in *)msgname;
866 sin->sin_family = AF_INET;
867 memset(sin->sin_zero, 0, sizeof(sin->sin_zero));
874 struct sockaddr_in *sin, *sinfrom; local
881 sin = (struct sockaddr_in *)msgname;
883 sin->sin_port = htons(asoc->peer.port);
884 sin->sin_addr.s_addr = sinfrom->sin_addr.s_addr;
893 struct sockaddr_in *sin local
[all...]

Completed in 1066 milliseconds

12