[quagga] OSPF6: Network: sendmsg (ifindex: 9) failed: Invalid argument(22)
来源:互联网 发布:淘宝友邦电器城买假货 编辑:程序博客网 时间:2024/06/16 11:00
[quagga-users 1193] ospf6 on 2.6.x linux kernel - IN6_IS_ADDR_LINKLOCAL - fe80::/128
https://lists.quagga.net/pipermail/quagga-dev/2004-January/000786.html
-----BEGIN PGP SIGNED MESSAGE-----Hash: SHA1Hi,Lukasz Biegaj wrote:| Is there a way to make OSPF6 work on 2.6.x linux kernels?|| Currently I see this in logs:| 2003/12/24 11:23:13 OSPF6: LSA: originate [AS-External ID=0.0.0.9Adv=80.55.247.118] seq: 0x80000001 age: 0| 1072261393.983434| 2003/12/24 11:23:13 OSPF6: ASBR: start redistributing 2000::/3 asLS-ID 10: 1072261393.983804| 2003/12/24 11:23:13 OSPF6: ASBR: schedule redistribution 2000::/3 asLS-ID 10 after 0 sec| 2003/12/24 11:23:13 OSPF6: LSA: originate [AS-External ID=0.0.0.10Adv=80.55.247.118] seq: 0x80000001 age: 0| 1072261393.983985| 2003/12/24 11:23:14 OSPF6: Network: Join AllDRouters on ifindex 4| 2003/12/24 11:23:14 OSPF6: Network: sendmsg (ifindex: 4) failed:Invalid argument(22)[...]| Linux 2.6.0, Debian SID, quagga from apt.|we ran into the same problem and found this:* Linux 2.6 seems to list all multicast / anycast adresses together withunicast addresses:[equinox at spaceboyz]:~ # ip a l dc29: dc2 at NONE: <POINTOPOINT,MULTICAST,NOARP,UP> mtu 1460 qdisc noqueue~ link/gre 0.0.0.0 peer 217.82.189.49~ inet 172.22.24.1 peer 172.22.2.2/32 scope global dc2~ inet6 fe80::ac17:2402/64 scope link~ valid_lft forever preferred_lft forever~ inet6 ff02::5/128 scope global~ valid_lft forever preferred_lft forever~ inet6 ff02::1/128 scope global~ valid_lft forever preferred_lft forever~ inet6 fe80::/128 scope global~ valid_lft forever preferred_lft forever(note the 2nd last line)* ospf6d uses the address list for selecting a linklocal address withIN6_IS_ADDR_LINKLOCAL(quagga/ospf6d/ospf_interface.c:192)~ /* linklocal scope check */~ if (IN6_IS_ADDR_LINKLOCAL (&c->address->u.prefix6))~ l = &c->address->u.prefix6;* IN6_IS_ADDR_LINKLOCAL is defined in /usr/include/netinet/in.h:307 asfollows:#define IN6_IS_ADDR_LINKLOCAL(a) \~ ((((__const uint32_t *) (a))[0] & htonl (0xffc00000)) \~ == htonl (0xfe800000))* in conjunction with 2.6 reporting all multicast/anycast addresses,this gets fe80:: (all-routers as far as i remember) into the OSPF6interface, but the kernel will reject this (of course...):~ OSPF6: Network: sendmsg (ifindex: 9) failed: Invalid argument(22)I don't know whose fault it is (how is IN6_IS_ADDR_LINKLOCAL defined towork? Is it OK for the kernel to include anycast/multicast addresses?)but this breaks ospf6d. Our fix was to change netinet/in.h becauseIN6_IS_ADDR_LINKLOCAL returning !0 only for unicast addresses seemed tobe "the right thing". Patch attached. (categorize that patch as "dirtyworks-for-me hack")David LamparterP.S.: glibc people please Cc me, i'm only subscribed to netdev and quagga-*System environment:Linux Kernel 2.6.1, x86, non-SMP, preemptible, vanillaGNU C Library stable release version 2.3.2, by Roland McGrath et al.quagga 0.96.4 CVS (Fre Jan 16 16:43:35 CET 2004)gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r3, propolice)- --A0C21986 David Lamparter (equinox) <david.lamparter at t-online.de>2D7F 5CC6 93AD 38DD 6CD5 47A0 A5F0 4657 A0C2 1986-----BEGIN PGP SIGNATURE-----Version: GnuPG v1.2.1 (MingW32)Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.orgiD8DBQFACAplpfBGV6DCGYYRAlQ9AJ44NbGi+WCVsMiCqq7Sklg7cKq1GQCePAjnQK+iNxE0JP+rdar7H3Ceapw==QdyO-----END PGP SIGNATURE------------------- next part --------------An embedded and charset-unspecified text was scrubbed...Name: glibc-ipv6-is_linklocal.patchURL: <http://lists.quagga.net/pipermail/quagga-dev/attachments/20040116/cb9a667c/attachment.ksh>
0 0
- [quagga] OSPF6: Network: sendmsg (ifindex: 9) failed: Invalid argument(22)
- seting the network namespace failed: Invalid argument
- udp调用sendmsg报错Invalid argument
- Installation Failed Invalid argument
- hwclock: settimeofday() failed: Invalid argument
- hwclock: settimeofday() failed: Invalid argument
- transfer error: Invalid argument. Failed to push selection: Invalid argument
- OK6410 hwclock: settimeofday() failed: Invalid argument
- Installation Failed: Invalid Argument -iOS Extension
- xCode模拟器出现installation failed invalid argument
- Xcode运行出错Installation Failed Invalid argument
- Failed to add uid rule (Invalid argument)
- Xcode模拟器出现installation failed invalid argument
- xcode installation failed -- invalid argument错误
- keepalived SIOCGMIIREG on em1 failed: Invalid argument SIOCGMIIREG on em1 failed: Invalid argument
- setsockopt invalid argument,errno 22
- OSError: [Errno 22] Invalid argument:
- Linux下启动network显示RTNETLINK answers: Invalid argument问题解决
- 页面未加载完成,显示正在加载的效果
- 分析C语言函数机制的优点和函数的使用
- Unity行为树插件Behavior Designer学习笔记
- Android 快速开发系列 ORMLite 框架最佳实践
- Mysql初始化root密码和允许远程访问
- [quagga] OSPF6: Network: sendmsg (ifindex: 9) failed: Invalid argument(22)
- 一元n次多项式的处理
- PAT 1004 乙等(成绩排名) c++
- POJ2723Get Luffy Out
- 轮播(pc端、手机端都适用)
- HttpClient之配置ssl,采用设置信任自签名证书实现https
- Java中获取键盘输入值的三种方法
- NodeJS、NPM安装配置步骤
- css幽灵按钮