Code Monkey home page Code Monkey logo

Comments (11)

mwarning avatar mwarning commented on June 1, 2024

hm, the error string is not in the current code anymore. Could you try to compile Kadnode from sources and give it a try?

from kadnode.

stargieg avatar stargieg commented on June 1, 2024

Hi
On the router and on my Mac is the latest Master Branch running f14b8af
I can see https://github.com/mwarning/KadNode/blob/master/src/ext-lpd.c#L119 for mac os x and https://github.com/mwarning/KadNode/blob/master/src/ext-lpd.c#L75 for Linux.
The function mcast_set_group() is calling for every ip6 addr on the Interface. In my case 6 times on Mac and 3 times on Linux Router.
If you want you can have access via ipv6 to a test Router. I Plan to debug this on Saturday.

from kadnode.

mwarning avatar mwarning commented on June 1, 2024

ah, ok. I see now why I could not find that error string.
Anyway, seeing the error message I would think that SO_REUSEADDR was not set. But it looks like the code does that. No idea right now what went wrong. Maybe something specific for MacOS.

from kadnode.

stargieg avatar stargieg commented on June 1, 2024

Same Problem on Linux!

from kadnode.

stargieg avatar stargieg commented on June 1, 2024

Hi
I think i have Fix for that Issue. :-)
RFC: 80ffb46

from kadnode.

mwarning avatar mwarning commented on June 1, 2024

@stargieg thanks for looking into the issue. :-)

from kadnode.

mwarning avatar mwarning commented on June 1, 2024

I will give the multicast code a full review in a few days. Let's see if there are also other issues.

from kadnode.

stargieg avatar stargieg commented on June 1, 2024

Hi @mwarning
This patch works only for one Interface. I am working on it.
But the bigger Problem is the fe80 or not fe80 question.
DHT receive any but not fe80 https://github.com/mwarning/KadNode/blob/master/src/dht.c#L376
LPD send only on fe80 https://github.com/mwarning/KadNode/blob/master/src/ext-lpd.c#L143
I think the DHT Code is the right way, because of fe80 dup on openwrt

root@wdr43-007:~# ip -6 addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 fe80::6666:xxxx:xxxx:55fc/64 scope link 
       valid_lft forever preferred_lft forever
5: br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 
    inet6 2a00:xxxx:xxxx:8405::1/64 scope global noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fd0d:8a84:7a92:1::1/64 scope global noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fe80::6666:xxxx:xxxx:55fc/64 scope link 
       valid_lft forever preferred_lft forever
7: eth0.2@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 
    inet6 fe80::6666:xxxx:xxxx:55fc/64 scope link 
       valid_lft forever preferred_lft forever
16: br-fflandhcp: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 
    inet6 fd0d:8a84:7a92::1/64 scope global noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 2a00:xxxx:xxxx:8404::1/64 scope global noprefixroute 
       valid_lft forever preferred_lft forever
    inet6 fe80::6666:xxxx:xxxx:55fe/64 scope link 
       valid_lft forever preferred_lft forever
17: wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 fe80::6666:xxxx:xxxx:55fe/64 scope link 
       valid_lft forever preferred_lft forever
18: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qlen 1000
    inet6 fe80::6666:xxxx:xxxx:55fd/64 scope link 
       valid_lft forever preferred_lft forever

The wlan0 and wlan1 iface are br-fflandhcp members, but have a fe80 addr where kadnode ist listening
and sending. :-(
The same with eth0 and br-lan.

from kadnode.

stargieg avatar stargieg commented on June 1, 2024

Please review this patch also.
stargieg@7191c40

from kadnode.

mwarning avatar mwarning commented on June 1, 2024

@stargieg fyi, I did a partial rewrite of the multicast code to simplify the mechanism and included some fixes of yours. It still needs to be tested. I will upload it when it proves to work.

from kadnode.

mwarning avatar mwarning commented on June 1, 2024

I simplified the discovery code a lot. This will probably help IPv6 support.

from kadnode.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.