Lines Matching refs:srx
34 struct sockaddr_rxrpc *srx) in rxrpc_lookup_peer_icmp_rcu() argument
54 memset(srx, 0, sizeof(*srx)); in rxrpc_lookup_peer_icmp_rcu()
55 srx->transport_type = local->srx.transport_type; in rxrpc_lookup_peer_icmp_rcu()
56 srx->transport_len = local->srx.transport_len; in rxrpc_lookup_peer_icmp_rcu()
57 srx->transport.family = local->srx.transport.family; in rxrpc_lookup_peer_icmp_rcu()
62 switch (srx->transport.family) { in rxrpc_lookup_peer_icmp_rcu()
64 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_icmp_rcu()
65 srx->transport.family = AF_INET; in rxrpc_lookup_peer_icmp_rcu()
66 srx->transport.sin.sin_port = udp->dest; in rxrpc_lookup_peer_icmp_rcu()
67 memcpy(&srx->transport.sin.sin_addr, &ip->daddr, in rxrpc_lookup_peer_icmp_rcu()
73 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_icmp_rcu()
74 srx->transport.family = AF_INET; in rxrpc_lookup_peer_icmp_rcu()
75 srx->transport.sin.sin_port = udp->dest; in rxrpc_lookup_peer_icmp_rcu()
76 memcpy(&srx->transport.sin.sin_addr, &ip->daddr, in rxrpc_lookup_peer_icmp_rcu()
86 _net("ICMP {%pISp}", &srx->transport); in rxrpc_lookup_peer_icmp_rcu()
87 return rxrpc_lookup_peer_rcu(local, srx); in rxrpc_lookup_peer_icmp_rcu()
98 struct sockaddr_rxrpc *srx) in rxrpc_lookup_peer_icmp6_rcu() argument
119 memset(srx, 0, sizeof(*srx)); in rxrpc_lookup_peer_icmp6_rcu()
120 srx->transport_type = local->srx.transport_type; in rxrpc_lookup_peer_icmp6_rcu()
121 srx->transport_len = local->srx.transport_len; in rxrpc_lookup_peer_icmp6_rcu()
122 srx->transport.family = local->srx.transport.family; in rxrpc_lookup_peer_icmp6_rcu()
127 switch (srx->transport.family) { in rxrpc_lookup_peer_icmp6_rcu()
130 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_icmp6_rcu()
131 srx->transport.family = AF_INET; in rxrpc_lookup_peer_icmp6_rcu()
132 srx->transport.sin.sin_port = udp->dest; in rxrpc_lookup_peer_icmp6_rcu()
133 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_icmp6_rcu()
138 srx->transport.sin.sin_port = udp->dest; in rxrpc_lookup_peer_icmp6_rcu()
139 memcpy(&srx->transport.sin6.sin6_addr, &ip->daddr, in rxrpc_lookup_peer_icmp6_rcu()
147 _net("ICMP {%pISp}", &srx->transport); in rxrpc_lookup_peer_icmp6_rcu()
148 return rxrpc_lookup_peer_rcu(local, srx); in rxrpc_lookup_peer_icmp6_rcu()
159 struct sockaddr_rxrpc srx; in rxrpc_encap_err_rcv() local
180 &info, &srx); in rxrpc_encap_err_rcv()
185 &info, &srx); in rxrpc_encap_err_rcv()
263 trace_rxrpc_rx_icmp(peer, &ee, &srx); in rxrpc_encap_err_rcv()
275 struct sockaddr_rxrpc *srx) in rxrpc_lookup_peer_local_rcu() argument
281 memset(srx, 0, sizeof(*srx)); in rxrpc_lookup_peer_local_rcu()
282 srx->transport_type = local->srx.transport_type; in rxrpc_lookup_peer_local_rcu()
283 srx->transport_len = local->srx.transport_len; in rxrpc_lookup_peer_local_rcu()
284 srx->transport.family = local->srx.transport.family; in rxrpc_lookup_peer_local_rcu()
286 switch (srx->transport.family) { in rxrpc_lookup_peer_local_rcu()
288 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_local_rcu()
289 srx->transport.family = AF_INET; in rxrpc_lookup_peer_local_rcu()
290 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_local_rcu()
294 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_local_rcu()
300 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_local_rcu()
305 memcpy(&srx->transport.sin.sin_addr, &ip_hdr(skb)->saddr, in rxrpc_lookup_peer_local_rcu()
316 srx->transport.sin6.sin6_port = serr->port; in rxrpc_lookup_peer_local_rcu()
317 memcpy(&srx->transport.sin6.sin6_addr, in rxrpc_lookup_peer_local_rcu()
323 srx->transport_len = sizeof(srx->transport.sin); in rxrpc_lookup_peer_local_rcu()
324 srx->transport.family = AF_INET; in rxrpc_lookup_peer_local_rcu()
325 srx->transport.sin.sin_port = serr->port; in rxrpc_lookup_peer_local_rcu()
326 memcpy(&srx->transport.sin.sin_addr, in rxrpc_lookup_peer_local_rcu()
331 memcpy(&srx->transport.sin6.sin6_addr, in rxrpc_lookup_peer_local_rcu()
343 return rxrpc_lookup_peer_rcu(local, srx); in rxrpc_lookup_peer_local_rcu()
389 struct sockaddr_rxrpc srx; in rxrpc_error_report() local
417 peer = rxrpc_lookup_peer_local_rcu(local, skb, &srx); in rxrpc_error_report()
421 trace_rxrpc_rx_icmp(peer, &serr->ee, &srx); in rxrpc_error_report()
547 cursor, peer->debug_id, slot, &peer->srx.transport); in rxrpc_peer_keepalive_dispatch()