OSDN Git Service

common_time: Move default election config to bcast.
authorJohn Grossman <johngro@google.com>
Tue, 21 Aug 2012 23:39:11 +0000 (16:39 -0700)
committerJohn Grossman <johngro@google.com>
Tue, 21 Aug 2012 23:39:11 +0000 (16:39 -0700)
commit7a947c49782165d7320a93d8685d99730286f9a7
treefd46b33beac102b5681ab23a0c18b3ed0fc144bd
parent5e8e41e41aecd2a4951659a1f3507f3371e0cc47
common_time: Move default election config to bcast.

Change the default master election and arbiration to use broadcast
instead of multicast.  As nice as the idea of using multicast for
discovery is, in the end it had just proven to be too unreliable in
random people's home infrastructures as well as the more complicated
managed infrastructures we are using internally.  Multicast still
works, and the service can still be configured to use it, but for now
we are switching to broadcast.

Also, add runtime checks to filter out our own broadcast traffic as
there does not seem to be any good sockopt in linux to do this for us
(there is one for multicast, but not broadcast).

Change-Id: I8ada3541cceca2e76c7a0c1a624a72026122c312
services/common_time/common_time_server.cpp