[Olsr-dev] [SOLVED] possible bug in IPv6 - txtinfo plugin believes a remote IPv6 is a local IPv6 ?

Henning Rogge (spam-protected)
Mon Aug 13 10:15:07 CEST 2012


Is there a good (posix compatible) way to check if IPv6 is working?

If not, putting a function like "bool os_ipv6_is_available(void)" into 
the os-specific code might be a good idea.

Still, if you can switch of IPv6 per interface (even on the localhost 
one), we might need some other strategy.

Henning Rogge

On 08/09/2012 01:11 PM, Ferry Huberts wrote:
> On 09-08-12 12:08, ZioPRoTo (Saverio Proto) wrote:
>> I want to share this experience because really I thought we had a bug
>> in OLSRD.
>> This was fixed just doing:
>> echo 0 > /proc/sys/net/ipv6/conf/lo/disable_ipv6
>>
>> that for some reason was set to 1.
>
> So should we add a check whether IPv6 is enabled when you try to run in
> IPv6 mode?
>
> (seems reasonable)
>
>>
>> as you can see OLSR had in the links database a lot of strange stuff !!!!
>>
>>
>> Version: olsr.org -
>> 0.6.3-git_18a7aa2-hash_5a445933668441036e7f086635b5547c  - (built on
>> 2012-08-08 13:03:38 on nockid)
>> https://github.com/zioproto/olsrd-gsoc2012/commits/mDNS-plugin-GSOC
>>
>> (note that this is my tree to changes only to mDNS but I am not using
>> mDNS here.
>>
>> XM.v5.5.sdk# cat /sbin/6olsr
>> #!/bin/sh
>> wget -q http://[::1]:2007/$1 -O -
>>
>> XM.v5.5.sdk# 6olsr links
>> Table: Links
>> Local IP        Remote IP       Hyst.   LQ      NLQ     Cost
>> 2001:4c00:893b:1:145::3 2001:4c00:893b:1:184::4 0.00    1.000
>> 0.761   1.313
>> 2001:4c00:893b:145::18  2001:4c00:893b:145::17  0.00    1.000
>> 1.000   1.000
>> 2001:4c00:893b:1:145::3 2001:4c00:893b:1:183::2 0.00    1.000
>> 0.937   1.066
>>
>> XM.v5.5.sdk# ip -6 addr show
>> 2: eth0: <BROADCAST,MULTICAST,ALLMULTI,PROMISC,UP,LOWER_UP> mtu 1500
>> qlen 1000
>>      inet6 2001:4c00:893b:183::11/64 scope global
>>         valid_lft forever preferred_lft forever
>>      inet6 fe80::227:22ff:fe39:d0f1/64 scope link
>>         valid_lft forever preferred_lft forever
>> 5: ath0: <BROADCAST,MULTICAST,ALLMULTI,PROMISC,UP,LOWER_UP> mtu 1500
>>      inet6 2001:4c00:893b:1:183::2/128 scope global
>>         valid_lft forever preferred_lft forever
>>      inet6 fe80::227:22ff:fe38:d0f1/64 scope link
>>         valid_lft forever preferred_lft forever
>> XM.v5.5.sdk# uname -a
>> Linux M5GalliaBramante 2.6.32.54 #1 Wed Aug 8 13:08:06 CEST 2012 mips
>> unknown
>> XM.v5.5.sdk# cat /etc/persistent/olsrd6.conf
>> DebugLevel  0
>>
>> IpVersion 6
>>
>> Pollrate  0.025
>> FIBMetric "flat"
>> UseNiit no
>> SmartGateway no
>>
>> Hna6
>> {
>> #Inserire qui la subnet IPv6 scelta nella pagina GestioneIndirizzi
>> 2001:4c00:893b:183:: 64
>> }
>>
>> UseHysteresis no
>> TcRedundancy  2
>>
>> MprCoverage 7
>>
>> LinkQualityLevel 2
>> LinkQualityAlgorithm    "etx_ff"
>> LinkQualityAging 0.05
>> LinkQualityFishEye  1
>>
>> LoadPlugin "olsrd_txtinfo.so.0.1"
>> {
>>     PlParam     "port"   "2007"
>>     PlParam     "Accept"   "::"
>>
>> }
>>
>> InterfaceDefaults {
>>        HelloInterval 3.0
>>        HelloValidityTime 125.0
>>        TcInterval 2.0
>>        TcValidityTime 500.0
>>        MidInterval 25.0
>>        MidValidityTime 500.0
>>        HnaInterval 10.0
>>        HnaValidityTime 125.0
>> }
>>
>> Interface "ath0" "eth0" "br0"
>> {
>>        Mode "mesh"
>>        IPv6Multicast FF02::6D
>> }
>> XM.v5.5.sdk#
>>
>


-- 
Diplom-Informatiker Henning Rogge , Fraunhofer-Institut für
Kommunikation, Informationsverarbeitung und Ergonomie FKIE
Kommunikationssysteme (KOM)
Neuenahrer Straße 20, 53343 Wachtberg, Germany
Telefon +49 228 9435-961,   Fax +49 228 9435 685
mailto:(spam-protected) http://www.fkie.fraunhofer.de
GPG: E1C6 0914 490B 3909 D944 F80D 4487 C67C 55EC CFE0

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6169 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.olsr.org/pipermail/olsr-dev/attachments/20120813/6cb92af3/attachment.bin>


More information about the Olsr-dev mailing list