]> CyberLeo.Net >> Repos - FreeBSD/releng/9.2.git/blob - contrib/ofed/librdmacm/man/rdma_resolve_addr.3
- Copy stable/9 to releng/9.2 as part of the 9.2-RELEASE cycle.
[FreeBSD/releng/9.2.git] / contrib / ofed / librdmacm / man / rdma_resolve_addr.3
1 .TH "RDMA_RESOLVE_ADDR" 3 "2007-10-31" "librdmacm" "Librdmacm Programmer's Manual" librdmacm
2 .SH NAME
3 rdma_resolve_addr \- Resolve destination and optional source addresses.
4 .SH SYNOPSIS
5 .B "#include <rdma/rdma_cma.h>"
6 .P
7 .B "int" rdma_resolve_addr
8 .BI "(struct rdma_cm_id *" id ","
9 .BI "struct sockaddr *" src_addr ","
10 .BI "struct sockaddr *" dst_addr ","
11 .BI "int " timeout_ms ");"
12 .SH ARGUMENTS
13 .IP "id" 12
14 RDMA identifier.
15 .IP "src_addr" 12
16 Source address information.  This parameter may be NULL.
17 .IP "dst_addr" 12
18 Destination address information.
19 .IP "timeout_ms" 12
20 Time to wait for resolution to complete.
21 .SH "DESCRIPTION"
22 Resolve destination and optional source addresses from IP addresses
23 to an RDMA address.  If successful, the specified rdma_cm_id will
24 be bound to a local device.
25 .SH "NOTES"
26 This call is used to map a given destination IP address to a usable RDMA
27 address.  The IP to RDMA address mapping is done using the local routing
28 tables, or via ARP.
29 If a source address is given, the rdma_cm_id is bound to that
30 address, the same as if rdma_bind_addr were called.  If no source
31 address is given, and the rdma_cm_id has not yet been bound to a device,
32 then the rdma_cm_id will be bound to a source address based on the
33 local routing tables.  After this call, the rdma_cm_id will be bound to
34 an RDMA device.  This call is typically made from the active side of a
35 connection before calling rdma_resolve_route and rdma_connect.
36 .SH "INFINIBAND SPECIFIC"
37 This call maps the destination and, if given, source IP addresses to GIDs.
38 In order to perform the mapping, IPoIB must be running on both the local
39 and remote nodes.
40 .SH "SEE ALSO"
41 rdma_create_id(3), rdma_resolve_route(3), rdma_connect(3), rdma_create_qp(3),
42 rdma_get_cm_event(3), rdma_bind_addr(3), rdma_get_src_port(3),
43 rdma_get_dst_port(3), rdma_get_local_addr(3), rdma_get_peer_addr(3)