udp-redux / udp-broadcast-relay-redux

Small daemon to relay udp broadcast / multicast packages on a different subnet.
GNU General Public License v2.0
138 stars 34 forks source link

IPv6 support? #18

Open lanrat opened 3 years ago

lanrat commented 3 years ago

When trying to join an IPv6 multicast group, udp-broadcast-relay-redux tries to add it to the IPv4 address for the interface.

$ sudo ./udp-broadcast-relay-redux  -d --dev eno0 --dev eno0.2 --id 5 --port 5353 --multicast f02::fb
ID set to 5
Port set to 5353
ID: 5 (ttl: 69), Port 5353
eno0: 2 / 192.168.1.4 / 192.168.1.255
eno0.2: 4 / 192.168.2.4 / 192.168.2.255
found 2 interfaces total
IP_ADD_MEMBERSHIP:              192.168.1.4 f02::fb
IP_ADD_MEMBERSHIP on rcv: Invalid argument
ajkavanagh commented 3 years ago

Unfortunately, udp-broadcast-relay doesn't support IPv6 yet (i.e. it only supports AF_INET rather than AF_INET and AF_INET6). I think it could be reworked to support it, but it would need additional options to indicate that they are ipv6 addresses, and to use ipv6 sockets, etc.

kk7ds commented 2 years ago

Just wanted to throw a "me too" on this. There are certain (poorly-behaved, IMHO) devices that seem to only advertise on ipv6 mDNS right now. Being poorly-behaved, I also want them corralled into their own subnet. I think an avahi repeater is the only way to do this for those devices right now, but I'd much rather be using this much simpler tool for that.

Ramalama2 commented 1 year ago

please add ipv6 support. here is an poor user that has samba on a server vlan and users on a user vlan. to make the users to be able to see the samba server via discovery (wsdd), we need ipv6 support either.

Thanks!

ajkavanagh commented 1 year ago

please add ipv6 support.

I'm not actually running ipv6 in my router as my ISP doesn't support it. I could run a tunnel, but I just haven't got around to it. Thus, I'm not really able to test ipv6 support properly. However, patches to add the feature are welcome!