View Issue Details

IDProjectCategoryView StatusLast Update
0001755GNUnettransport servicepublic2024-05-03 11:58
ReporterChristian Grothoff Assigned ToMatthias Wachs Due Date
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 20:10

manager   ~0004619

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

Christian Grothoff

2011-09-19 20: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 15: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 ModifiedUsernameFieldChange
2011-08-12 08:25rootNew Issue
2011-09-16 08:36Christian GrothoffStatusnew => confirmed
2011-09-19 08:12Christian GrothoffTarget Version => 0.9.0
2011-09-19 09:49Christian GrothoffPrioritynormal => high
2011-09-19 09:56Christian GrothoffAssigned To => Christian Grothoff
2011-09-19 09:56Christian GrothoffStatusconfirmed => assigned
2011-09-19 09:56Christian GrothoffReporterroot => Christian Grothoff
2011-09-19 20:10Christian GrothoffNote Added: 0004619
2011-09-19 20:11Christian GrothoffNote Added: 0004620
2011-10-04 21:16Christian GrothoffAssigned ToChristian Grothoff =>
2011-10-04 21:16Christian GrothoffTarget Version0.9.0 =>
2011-10-04 21:16Christian GrothoffStatusassigned => confirmed
2011-10-29 14:04Matthias WachsAssigned To => Matthias Wachs
2011-10-29 14:04Matthias WachsStatusconfirmed => assigned
2011-10-29 14:04Matthias WachsAdditional Information Updated
2011-10-29 14:05Matthias WachsAdditional Information Updated
2011-10-29 15:51Christian GrothoffNote Added: 0004796
2011-10-30 14:49Matthias WachsStatusassigned => resolved
2011-10-30 14:49Matthias WachsResolutionopen => fixed
2011-10-30 19:55Christian GrothoffProduct VersionGit master => 0.9.0pre3
2011-10-30 19:55Christian GrothoffFixed in Version => 0.9.0pre4
2011-10-30 19:55Christian GrothoffTarget Version => 0.9.0pre4
2011-10-31 11:00Christian GrothoffStatusresolved => closed
2024-05-03 11:58Christian GrothoffCategoryUDP transport => transport service