免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2762 | 回复: 0
打印 上一主题 下一主题

关于openswan补丁 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2014-02-06 10:02 |只看该作者 |倒序浏览
本帖最后由 外零 于 2014-02-06 10:49 编辑

xl2tpd[31300]: IPsec SAref does not work with L2TP kernel mode yet, enabling force userspace=yes
xl2tpd[31300]: setsockopt recvref[30]: Protocol not available
xl2tpd[31300]: Not looking for kernel support.
xl2tpd[31300]: open_controlfd: Unable to open /var/run/xl2tpd/l2tp-control for reading.

openswan的文档中并没有说一定要saref打上这个补丁,但是不管在xl2tpd中怎么配置,都会出现这样的问题。

内核2.6.32,
$uname -r
2.6.32-431.3.1.el6.i686

release centos 6.3

使用openswan-2.6.39/patches/kernel/2.6.32目录下的patch,然后重新编译内核的时候会出现以下问题

net/ipv4/ip_sockglue.c: In function ‘ip_cmsg_recv_ipsec_refinfo’:
net/ipv4/ip_sockglue.c:180: error: dereferencing pointer to incomplete type
net/ipv4/ip_sockglue.c:181: error: dereferencing pointer to incomplete type
net/ipv4/ip_sockglue.c: In function ‘ip_cmsg_send_ipsec_refinfo’:
net/ipv4/ip_sockglue.c:200: error: dereferencing pointer to incomplete type
net/ipv4/ip_sockglue.c:201: error: dereferencing pointer to incomplete type

查看代码 结构体 ipsec_secpath_saref_ops 未定义。
加上结构体定义:
struct ipsec_secpath_saref_ops {
        int (*set_ipc_saref)(struct ipcm_cookie *ipc, xfrm_sec_unique_t saref);
        void (*get_secpath_sarefs)(struct sec_path *sp,
                        xfrm_sec_unique_t *refme, xfrm_sec_unique_t *refhim);
};


net/ipv4/ip_sockglue.c:306: error: redefinition of ‘__kcrctab_ip_cmsg_send’
net/ipv4/ip_sockglue.c:258: note: previous definition of ‘__kcrctab_ip_cmsg_send’ was here

306和258行

EXPORT_SYMBOL(ip_cmsg_send);

重复。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP