Lines Matching full:transport
2 /* RxRPC remote transport endpoint record management
42 hash_key += srx->transport.family; in rxrpc_peer_hash_key()
44 switch (srx->transport.family) { in rxrpc_peer_hash_key()
46 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
47 size = sizeof(srx->transport.sin.sin_addr); in rxrpc_peer_hash_key()
48 p = (u16 *)&srx->transport.sin.sin_addr; in rxrpc_peer_hash_key()
52 hash_key += (u16 __force)srx->transport.sin.sin_port; in rxrpc_peer_hash_key()
53 size = sizeof(srx->transport.sin6.sin6_addr); in rxrpc_peer_hash_key()
54 p = (u16 *)&srx->transport.sin6.sin6_addr; in rxrpc_peer_hash_key()
58 WARN(1, "AF_RXRPC: Unsupported transport address family\n"); in rxrpc_peer_hash_key()
89 (peer->srx.transport.family - srx->transport.family)); in rxrpc_peer_cmp_key()
93 switch (srx->transport.family) { in rxrpc_peer_cmp_key()
95 return ((u16 __force)peer->srx.transport.sin.sin_port - in rxrpc_peer_cmp_key()
96 (u16 __force)srx->transport.sin.sin_port) ?: in rxrpc_peer_cmp_key()
97 memcmp(&peer->srx.transport.sin.sin_addr, in rxrpc_peer_cmp_key()
98 &srx->transport.sin.sin_addr, in rxrpc_peer_cmp_key()
102 return ((u16 __force)peer->srx.transport.sin6.sin6_port - in rxrpc_peer_cmp_key()
103 (u16 __force)srx->transport.sin6.sin6_port) ?: in rxrpc_peer_cmp_key()
104 memcmp(&peer->srx.transport.sin6.sin6_addr, in rxrpc_peer_cmp_key()
105 &srx->transport.sin6.sin6_addr, in rxrpc_peer_cmp_key()
114 * Look up a remote transport endpoint for the specified address using RCU.
134 * Look up a remote transport endpoint for the specified address using RCU.
167 switch (peer->srx.transport.family) { in rxrpc_assess_MTU_size()
171 peer->srx.transport.sin.sin_addr.s_addr, 0, in rxrpc_assess_MTU_size()
185 memcpy(&fl6->daddr, &peer->srx.transport.sin6.sin6_addr, in rxrpc_assess_MTU_size()
249 switch (peer->srx.transport.family) { in rxrpc_init_peer()
323 * obtain a remote transport endpoint for the specified address
332 _enter("{%pISp}", &srx->transport); in rxrpc_lookup_peer()
456 &peer->srx.transport); in rxrpc_destroy_all_peers()
500 * rxrpc_kernel_remote_addr - Get the peer transport address of a call
503 * Get a pointer to the transport address from a peer record. The caller is
509 (peer ? &peer->srx.transport : &rxrpc_null_addr.transport); in rxrpc_kernel_remote_addr()