Lines Matching full:transport

2 /* RxRPC remote transport endpoint record management
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()
52 p = (u16 *)&srx->transport.sin6.sin6_addr; in rxrpc_peer_hash_key()
56 WARN(1, "AF_RXRPC: Unsupported transport address family\n"); in rxrpc_peer_hash_key()
87 (peer->srx.transport.family - srx->transport.family)); in rxrpc_peer_cmp_key()
91 switch (srx->transport.family) { in rxrpc_peer_cmp_key()
93 return ((u16 __force)peer->srx.transport.sin.sin_port - in rxrpc_peer_cmp_key()
94 (u16 __force)srx->transport.sin.sin_port) ?: in rxrpc_peer_cmp_key()
95 memcmp(&peer->srx.transport.sin.sin_addr, in rxrpc_peer_cmp_key()
96 &srx->transport.sin.sin_addr, in rxrpc_peer_cmp_key()
100 return ((u16 __force)peer->srx.transport.sin6.sin6_port - in rxrpc_peer_cmp_key()
101 (u16 __force)srx->transport.sin6.sin6_port) ?: in rxrpc_peer_cmp_key()
102 memcmp(&peer->srx.transport.sin6.sin6_addr, in rxrpc_peer_cmp_key()
103 &srx->transport.sin6.sin6_addr, in rxrpc_peer_cmp_key()
112 * Look up a remote transport endpoint for the specified address using RCU.
132 * Look up a remote transport endpoint for the specified address using RCU.
142 _net("PEER %d {%pISp}", peer->debug_id, &peer->srx.transport); in rxrpc_lookup_peer_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()
254 switch (peer->srx.transport.family) { in rxrpc_init_peer()
323 * obtain a remote transport endpoint for the specified address
333 _enter("{%pISp}", &srx->transport); in rxrpc_lookup_peer()
373 _net("PEER %d {%pISp}", peer->debug_id, &peer->srx.transport); in rxrpc_lookup_peer()
481 &peer->srx.transport); in rxrpc_destroy_all_peers()