View Issue Details

IDProjectCategoryView StatusLast Update
0001755GNUnettransport servicepublic2024-05-03 13:58
ReporterChristian Grothoff Assigned ToMatthias Wachs  
PriorityhighSeverityfeatureReproducibilityN/A
Status closedResolutionfixed 
Summary0001755: UDP plugin should broadcast HELLOs on LAN to discover peer
DescriptionBy listening for HELLOs and periodically broadcasting our own, we should be able to discover other peers in the same LAN.
Additional Informationalready implemented:
configuration stuff
creating and closing sockets
setting socket in broadcast mode
periodic sending task

sending a beacon every INTERVAL seconds

to do:
get HELLO from transport to plugin
offer received beacon to transport
TagsNo tags attached.

Activities

Christian Grothoff

2011-09-19 22:10

manager   ~0004619

Note: we need to set SO_BROADCAST option for the socket with 'setsockopt'.

Christian Grothoff

2011-09-19 22:11

manager   ~0004620

Note: we don't need to find out the local broadcast adddress; 255.255.255.255 means "limited broadcast" (to be sent on the local link only) these days (RFC 1122).

Christian Grothoff

2011-10-29 17:51

manager   ~0004796

However, 255.255.255.255 does NOT work nicely with multiple interfaces:

http://stackoverflow.com/questions/683624/udp-broadcast-on-all-interfaces

So even better would be to figure out the broadcast addrs of all interfaces and send a packet to each of them.

Issue History

Date Modified Username Field Change
2011-08-12 10:25 root New Issue
2011-09-16 10:36 Christian Grothoff Status new => confirmed
2011-09-19 10:12 Christian Grothoff Target Version => 0.9.0
2011-09-19 11:49 Christian Grothoff Priority normal => high
2011-09-19 11:56 Christian Grothoff Assigned To => Christian Grothoff
2011-09-19 11:56 Christian Grothoff Status confirmed => assigned
2011-09-19 11:56 Christian Grothoff Reporter root => Christian Grothoff
2011-09-19 22:10 Christian Grothoff Note Added: 0004619
2011-09-19 22:11 Christian Grothoff Note Added: 0004620
2011-10-04 23:16 Christian Grothoff Assigned To Christian Grothoff =>
2011-10-04 23:16 Christian Grothoff Target Version 0.9.0 =>
2011-10-04 23:16 Christian Grothoff Status assigned => confirmed
2011-10-29 16:04 Matthias Wachs Assigned To => Matthias Wachs
2011-10-29 16:04 Matthias Wachs Status confirmed => assigned
2011-10-29 16:04 Matthias Wachs Additional Information Updated
2011-10-29 16:05 Matthias Wachs Additional Information Updated
2011-10-29 17:51 Christian Grothoff Note Added: 0004796
2011-10-30 15:49 Matthias Wachs Status assigned => resolved
2011-10-30 15:49 Matthias Wachs Resolution open => fixed
2011-10-30 20:55 Christian Grothoff Product Version Git master => 0.9.0pre3
2011-10-30 20:55 Christian Grothoff Fixed in Version => 0.9.0pre4
2011-10-30 20:55 Christian Grothoff Target Version => 0.9.0pre4
2011-10-31 12:00 Christian Grothoff Status resolved => closed
2024-05-03 13:58 Christian Grothoff Category UDP transport => transport service