Home
last modified time | relevance | path

Searched refs:srx (Results 1 – 17 of 17) sorted by relevance

/net/rxrpc/
Dpeer_object.c29 const struct sockaddr_rxrpc *srx) in rxrpc_peer_hash_key() argument
38 hash_key += srx->transport_type; in rxrpc_peer_hash_key()
39 hash_key += srx->transport_len; in rxrpc_peer_hash_key()
40 hash_key += srx->transport.family; in rxrpc_peer_hash_key()
42 switch (srx->transport.family) { in rxrpc_peer_hash_key()
44 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
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()
50 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
51 size = sizeof(srx->transport.sin6.sin6_addr); in rxrpc_peer_hash_key()
[all …]
Dutils.c16 int rxrpc_extract_addr_from_skb(struct sockaddr_rxrpc *srx, struct sk_buff *skb) in rxrpc_extract_addr_from_skb() argument
18 memset(srx, 0, sizeof(*srx)); in rxrpc_extract_addr_from_skb()
22 srx->transport_type = SOCK_DGRAM; in rxrpc_extract_addr_from_skb()
23 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_extract_addr_from_skb()
24 srx->transport.sin.sin_family = AF_INET; in rxrpc_extract_addr_from_skb()
25 srx->transport.sin.sin_port = udp_hdr(skb)->source; in rxrpc_extract_addr_from_skb()
26 srx->transport.sin.sin_addr.s_addr = ip_hdr(skb)->saddr; in rxrpc_extract_addr_from_skb()
31 srx->transport_type = SOCK_DGRAM; in rxrpc_extract_addr_from_skb()
32 srx->transport_len = sizeof(srx->transport.sin6); in rxrpc_extract_addr_from_skb()
33 srx->transport.sin6.sin6_family = AF_INET6; in rxrpc_extract_addr_from_skb()
[all …]
Dlocal_object.c60 const struct sockaddr_rxrpc *srx) in rxrpc_local_cmp_key() argument
64 diff = ((local->srx.transport_type - srx->transport_type) ?: in rxrpc_local_cmp_key()
65 (local->srx.transport_len - srx->transport_len) ?: in rxrpc_local_cmp_key()
66 (local->srx.transport.family - srx->transport.family)); in rxrpc_local_cmp_key()
70 switch (srx->transport.family) { in rxrpc_local_cmp_key()
75 return ((u16 __force)local->srx.transport.sin.sin_port - in rxrpc_local_cmp_key()
76 (u16 __force)srx->transport.sin.sin_port) ?: in rxrpc_local_cmp_key()
77 memcmp(&local->srx.transport.sin.sin_addr, in rxrpc_local_cmp_key()
78 &srx->transport.sin.sin_addr, in rxrpc_local_cmp_key()
85 return ((u16 __force)local->srx.transport.sin6.sin6_port - in rxrpc_local_cmp_key()
[all …]
Dpeer_event.c30 struct sockaddr_rxrpc *srx) in rxrpc_lookup_peer_local_rcu() argument
36 memset(srx, 0, sizeof(*srx)); in rxrpc_lookup_peer_local_rcu()
37 srx->transport_type = local->srx.transport_type; in rxrpc_lookup_peer_local_rcu()
38 srx->transport_len = local->srx.transport_len; in rxrpc_lookup_peer_local_rcu()
39 srx->transport.family = local->srx.transport.family; in rxrpc_lookup_peer_local_rcu()
44 switch (srx->transport.family) { in rxrpc_lookup_peer_local_rcu()
46 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_local_rcu()
47 srx->transport.family = AF_INET; in rxrpc_lookup_peer_local_rcu()
48 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_local_rcu()
51 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_local_rcu()
[all …]
Daf_rxrpc.c77 struct sockaddr_rxrpc *srx, in rxrpc_validate_address() argument
85 if (srx->srx_family != AF_RXRPC) in rxrpc_validate_address()
88 if (srx->transport_type != SOCK_DGRAM) in rxrpc_validate_address()
92 if (srx->transport_len < sizeof(sa_family_t) || in rxrpc_validate_address()
93 srx->transport_len > len) in rxrpc_validate_address()
96 switch (srx->transport.family) { in rxrpc_validate_address()
101 if (srx->transport_len < sizeof(struct sockaddr_in)) in rxrpc_validate_address()
110 if (srx->transport_len < sizeof(struct sockaddr_in6)) in rxrpc_validate_address()
122 memset((void *)srx + tail, 0, len - tail); in rxrpc_validate_address()
123 _debug("INET: %pISp", &srx->transport); in rxrpc_validate_address()
[all …]
Drxperf.c181 struct sockaddr_rxrpc srx; in rxperf_open_socket() local
193 memset(&srx, 0, sizeof(srx)); in rxperf_open_socket()
194 srx.srx_family = AF_RXRPC; in rxperf_open_socket()
195 srx.srx_service = RX_PERF_SERVICE; in rxperf_open_socket()
196 srx.transport_type = SOCK_DGRAM; in rxperf_open_socket()
197 srx.transport_len = sizeof(srx.transport.sin6); in rxperf_open_socket()
198 srx.transport.sin6.sin6_family = AF_INET6; in rxperf_open_socket()
199 srx.transport.sin6.sin6_port = htons(RXPERF_PORT); in rxperf_open_socket()
208 ret = kernel_bind(socket, (struct sockaddr *)&srx, sizeof(srx)); in rxperf_open_socket()
Dlocal_event.c39 struct sockaddr_rxrpc srx; in rxrpc_send_version_request() local
47 if (rxrpc_extract_addr_from_skb(&srx, skb) < 0) in rxrpc_send_version_request()
50 msg.msg_name = &srx.transport; in rxrpc_send_version_request()
51 msg.msg_namelen = srx.transport_len; in rxrpc_send_version_request()
Doutput.c202 msg.msg_name = &call->peer->srx.transport; in rxrpc_send_ack_packet()
203 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_ack_packet()
284 msg.msg_name = &call->peer->srx.transport; in rxrpc_send_abort_packet()
285 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_abort_packet()
349 msg.msg_name = &call->peer->srx.transport; in rxrpc_send_data_packet()
350 msg.msg_namelen = call->peer->srx.transport_len; in rxrpc_send_data_packet()
494 switch (conn->local->srx.transport.family) { in rxrpc_send_data_packet()
535 msg.msg_name = &conn->peer->srx.transport; in rxrpc_send_conn_abort()
536 msg.msg_namelen = conn->peer->srx.transport_len; in rxrpc_send_conn_abort()
584 struct sockaddr_rxrpc srx; in rxrpc_reject_packet() local
[all …]
Dconn_object.c95 struct sockaddr_rxrpc *srx, in rxrpc_find_client_connection_rcu() argument
118 switch (srx->transport.family) { in rxrpc_find_client_connection_rcu()
120 if (peer->srx.transport.sin.sin_port != in rxrpc_find_client_connection_rcu()
121 srx->transport.sin.sin_port) in rxrpc_find_client_connection_rcu()
126 if (peer->srx.transport.sin6.sin6_port != in rxrpc_find_client_connection_rcu()
127 srx->transport.sin6.sin6_port) in rxrpc_find_client_connection_rcu()
Dproc.c72 sprintf(lbuff, "%pISpc", &local->srx.transport); in rxrpc_call_seq_show()
166 sprintf(lbuff, "%pISpc", &conn->local->srx.transport); in rxrpc_connection_seq_show()
167 sprintf(rbuff, "%pISpc", &conn->peer->srx.transport); in rxrpc_connection_seq_show()
221 sprintf(lbuff, "%pISpc", &peer->local->srx.transport); in rxrpc_peer_seq_show()
223 sprintf(rbuff, "%pISpc", &peer->srx.transport); in rxrpc_peer_seq_show()
344 sprintf(lbuff, "%pISpc", &local->srx.transport); in rxrpc_local_seq_show()
Dcall_accept.c277 peer->srx = *peer_srx; in rxrpc_alloc_incoming_call()
312 call->dest_srx = peer->srx; in rxrpc_alloc_incoming_call()
353 if (!rx || (sp->hdr.serviceId != rx->srx.srx_service && in rxrpc_new_incoming_call()
Dio_thread.c262 if (peer_srx.transport.family != local->srx.transport.family && in rxrpc_input_packet()
264 local->srx.transport.family != AF_INET6)) { in rxrpc_input_packet()
267 local->srx.transport.family); in rxrpc_input_packet()
Dcall_object.c191 struct sockaddr_rxrpc *srx, in rxrpc_alloc_client_call() argument
209 call->dest_srx = *srx; in rxrpc_alloc_client_call()
332 struct sockaddr_rxrpc *srx, in rxrpc_new_client_call() argument
353 call = rxrpc_alloc_client_call(rx, srx, cp, p, gfp, debug_id); in rxrpc_new_client_call()
Dsendmsg.c578 DECLARE_SOCKADDR(struct sockaddr_rxrpc *, srx, msg->msg_name); in rxrpc_new_client_call_for_sendmsg()
597 cp.service_id = srx->srx_service; in rxrpc_new_client_call_for_sendmsg()
598 call = rxrpc_new_client_call(rx, &cp, srx, &p->call, GFP_KERNEL, in rxrpc_new_client_call_for_sendmsg()
Dconn_event.c115 msg.msg_name = &conn->peer->srx.transport; in rxrpc_conn_retransmit_call()
116 msg.msg_namelen = conn->peer->srx.transport_len; in rxrpc_conn_retransmit_call()
Dar-internal.h169 struct sockaddr_rxrpc srx; /* Primary Service/local addresses */ member
318 struct sockaddr_rxrpc srx; /* local address */ member
342 struct sockaddr_rxrpc srx; /* remote address */ member
1180 struct sockaddr_rxrpc *srx, gfp_t gfp);
Drxkad.c643 msg.msg_name = &conn->peer->srx.transport; in rxkad_issue_challenge()
644 msg.msg_namelen = conn->peer->srx.transport_len; in rxkad_issue_challenge()
701 msg.msg_name = &conn->peer->srx.transport; in rxkad_send_response()
702 msg.msg_namelen = conn->peer->srx.transport_len; in rxkad_send_response()