套接字直接协议错误:“协议不支持地址系列”

时间:2013-02-19 23:22:49

标签: c linux ubuntu ubuntu-12.04 infiniband

我以为我会在我们的infiniband硬件上试用SDP。

但是,当我尝试将AF_INET_SDP添加为socket()的第一个参数时,我收到以下错误:

"Address family not supported by protocol".

原来我有:

#define AF_INET_SDP 26

但是在做了一些阅读之后,注意到一段时间后应用补丁将此值更改为27。

当设置为26时,我收到错误:

"Error binding socket: No such device"

有没有人设法让SDP在Ubuntu 12.04上运行?你做了什么让它运行起来?

我安装了libsdp1和libsdpa-dev

在iperf上使用LD_PRELOAD方法我也得到第一个错误:

LD_PRELOAD=libsdp.so iperf -s
dir: /tmp/libsdp.log.1000 file: /tmp/libsdp.log.1000/log
socket failed: Address family not supported by protocol
bind failed: Bad file descriptor

因此我假设27是正确的域名。

1 个答案:

答案 0 :(得分:0)

主线linux内核尚未接受SDP。在最近的fedora上,它们不发送它,也不发送用户空间libsdp。 如果您仍想进行实验,Matt是对的,有问题的模块是'ib_sdp'。 尝试modprobe ib_sdp并再次运行你的例子。