I'm trying to find programmatically the inet address of an Infiniband interface whose name is not know a priori.
I'm on Linux, and I would like to avoid the parsing of ifconfig (8)
output.
I've read the second comment on this answer, that suggests to use getifaddrs()
to retrieve the interfaces, but then I cannot select the Infiniband one.
Any help is very appreciated.