[openib-general] Interface for getting RNIC's IP address

Caitlin Bestler caitlinb at broadcom.com
Mon Jun 26 12:39:30 PDT 2006


openib-general-bounces at openib.org wrote:
> On Mon, 2006-06-26 at 14:22 -0400, Sundeep Narravula wrote:
>>  Is there any s/w interface to obtain the local RNIC's IP address?
>> 
>> The current rdma cm examples, rping and cmatose, require the user to
>> enter the ip address as a command line parameter. I am currently
>> looking for a way to get this programatically.
>> 
> 
> You can use 0.0.0.0 which will allow you to listen across all
> rdma devices.  Otherwise, you have to "know" which ip address
> is bound to the device you wish to listen on.
> 
> 
> 
True, but if you know what netdevice the rdma device you want
to listen on is associated with then you can work from the
IP Address to the netdevice.





More information about the general mailing list