Matthias Radestock
abb1c6c781
refactor(ish): push down some error handling in router
2015-03-06 14:51:39 +00:00
rade
0f7f49d3be
Merge pull request #433 from dpw/419_broadcast_frametoobigerror
...
Do not inject ICMP "fragmentation needed" for broadcast packets.
It's a contravention of RFC1122 and also breaks weave routing due to producing packets with broadcast addresses as the source.
Fixes #419 .
2015-03-06 14:37:10 +00:00
Michael Bridgen
b38af84368
Merge pull request #435 from fintanr/434
...
Update README with CoreOS install instructions.
Closes #434 .
2015-03-06 14:36:15 +00:00
David Wragg
2f7e0b5cad
Simplify version printing
2015-03-06 11:15:24 +00:00
Fintan Ryan
911a3492b2
434 Update README with CoreOS install instructions
2015-03-06 10:01:14 +00:00
Michael Bridgen
6404ac30b9
Minor improvements to vagrant VMs
...
* disable the default Vagrant shared folder, which we don't need
* install `bc` on the dev VM, since it's needed by the smoke tests
* expose the dev VM docker on TCP, for convenience
2015-03-05 16:30:50 +00:00
Matthias Radestock
a00f67cf06
use correct API for figuring out whether crypto is enabled
2015-03-05 15:51:54 +00:00
David Wragg
5b66daf1e4
Remove some layers of indirection around FrameTooBigError handling
2015-03-05 15:13:30 +00:00
David Wragg
e543bff1ba
Don't propagate errors from RelayBroadcast
...
If forwarding of a broadcast frame resulted in a FrameTooBigError, we
would generate an ICMP "fragmentation needed" packet that contravened
RFC1122 on two counts: First, we should not produce a ICMP error
message in response to a broadcast/multicast packet. Secondly, we
should not produce an IP packet with a broadcast/multicast source IP
address. (It also gave an ethernet frame with a broadcast source MAC,
which probably contravenes some IEEE spec.)
So when RelayBroadcast gets a FrameTooBigError, it should just drop
the packet.
Futhermore, if we fail to relay a broadcast on one connection, that's
not a good reason to give up entirely - we can proceed to attempt to
relay on the other next hop connections. Errors other than
FrameTooBigError that propagated upwards were simply logged, so that
logging is moved down into RelayBroadcast.
2015-03-05 15:13:29 +00:00
David Wragg
619ebc20a8
Don't pass password around as a pointer to a slice
...
A slice can be nil, so there is no reason for extra indirection to
represent the lack of a password.
2015-03-05 14:19:54 +00:00
David Wragg
cda6b8d582
Fix a few deviations from go fmt
2015-03-05 13:56:21 +00:00
Matthias Radestock
6c82f781cd
trim some logging from tests
2015-03-02 17:02:10 +00:00
Matthias Radestock
6d69ac5532
refactor and tweak dns tests
...
- extract helper function
- use "lots and lots of MX records" instead of "lots of TXT records"
for testing large response
- calculate on the fly the number of records we need to generate a
large response
- don't hardcode "weave.works"
2015-03-02 16:56:10 +00:00
Michael Bridgen
b76e97ac24
Merge branch 'pr394'
...
Closes #366 , again.
2015-02-27 17:02:01 +00:00
Michael Bridgen
1d929263ac
Default the localDomain argument from the CLI
...
Otherwise, the HTTP listener can be given an empty string, and refuse
to record any hosts.
2015-02-27 16:58:47 +00:00
Matthias Radestock
5327c41c82
Allow build to be interrupted.
...
This was missed in #387 .
2015-02-27 16:45:24 +00:00
Bryan Boreham
e22b470c3e
Add the change from #395 , which got lost
...
`-t` flag creates a tty for the command, so we can interrupt it with Control-C
2015-02-27 16:39:53 +00:00
Michael Bridgen
48ef098518
Merge branch 'pr394': Add localDomain option to weavedns
...
Improve the DNS server configuration mechanism. The new configuration
system includes the ability to specify a different domain name other
than ".weave.local".
2015-02-27 15:30:49 +00:00
Michael Bridgen
3137e4acdd
Smoke test for custom localDomain
2015-02-27 15:29:59 +00:00
Michael Bridgen
35a8a390e7
Merge branch 'weave-366' of https://github.com/inercia/weave into pr394
2015-02-27 15:10:23 +00:00
Bryan Boreham
fcb36458c8
Fix breakage from #387
2015-02-27 15:08:14 +00:00
rade
be3415b64f
Merge pull request #428 from bboreham/415_direct_tcpSend
...
Remove deadlock in sending protocol messages
Closes #415 .
2015-02-27 15:03:38 +00:00
Bryan Boreham
6437caddf2
Reworded comment
2015-02-27 15:02:30 +00:00
Bryan Boreham
139758256b
Make clear that tcp-send methods are not handlers and may be called outside of queryLoop
2015-02-27 14:52:47 +00:00
Alvaro Saurin
4682f7ed95
zettio/weave#366 - removed reference to DNSServerConfig in the DNSServer struct
2015-02-27 15:40:32 +01:00
Bryan Boreham
846321afeb
Merge pull request #427 from fl0yd/patch-1
...
LGTM
2015-02-27 14:37:19 +00:00
fl0yd
49cb2758a4
Corrected a misspelling in readme
2015-02-27 08:34:24 -06:00
Bryan Boreham
657125fd54
Send to tcpSender on the calling thread, so the Actor channel doesn't get clogged up
2015-02-27 14:12:32 +00:00
Alvaro Saurin
007873a402
zettio/weave#366 - keep the DNSServerConfig inmutable
2015-02-27 12:22:08 +01:00
Alvaro Saurin
0bc3e333f8
zettio/weave#366 - minor: fixed a typo and removed some superfluous code
2015-02-26 10:51:48 +01:00
Alvaro Saurin
403520f4b6
zettio/weave#366 - move more initialization code to the constructor
2015-02-26 10:51:48 +01:00
Alvaro Saurin
bbd69170f9
zettio/weave#366 - improved configuration for th DNSServer, where we can specify the local domain name among other things... (missing some unit tests for this customized local domain)
2015-02-26 10:51:48 +01:00
rade
d1400bc233
Merge pull request #407 from awh/369_name_weave_peers
...
nicknames for weave peers
Closes #369 .
2015-02-25 18:10:36 +00:00
rade
47ef9ff85e
Merge pull request #413 from awh/373_detect_udp_connectivity_breakage
...
Tear down connections on prolonged loss of UDP heartbeat.
Closes #373 .
2015-02-25 18:09:05 +00:00
Matthias Radestock
62c6242840
remove dead code
2015-02-25 17:13:52 +00:00
rade
eafe17255b
Merge pull request #421 from bboreham/418_copy_connections
...
Avoid some deadlocks
Fixes #418
2015-02-25 16:23:05 +00:00
Bryan Boreham
607b528973
Copy connections before sending, to avoid a deadlock
2015-02-25 16:11:58 +00:00
Michael Bridgen
0350c55a21
Merge branch 'pr359'
2015-02-25 15:43:19 +00:00
rade
d9cdfff35d
Merge pull request #387 from dpw/build_in_container
...
Containerized weave build
2015-02-25 15:35:35 +00:00
David Wragg
f46746c75f
Fix a mention of the exported images being in /var/tmp
...
In fact, remove the mention of the exported images being in the container
altogether. The images are in the host docker daemon, so it is easier to
export them again than to go fishing around with 'docker cp'.
2015-02-25 15:08:26 +00:00
Michael Bridgen
0e4b33b103
Merge branch 'json_status' of https://github.com/bboreham/weave into pr359
2015-02-25 14:46:33 +00:00
David Wragg
3d5e76d0e8
Always use sudo for docker commands in instructions
2015-02-25 14:29:48 +00:00
David Wragg
a869e89c7b
Fix incorrect markdown link syntax
2015-02-25 14:20:49 +00:00
David Wragg
cf2b7bc673
Remove 'make prerequisites' and update docs accordingly
2015-02-25 14:15:07 +00:00
Adam Harrison
25c0cfd0c4
Actually use empty string as test nickname
2015-02-25 12:10:56 +00:00
Adam Harrison
72c9ae7a5c
Use empty string as test nickname
2015-02-24 22:25:46 +00:00
Adam Harrison
326a5d19b3
Transpose script arguments to match declaration order
2015-02-24 22:23:51 +00:00
Adam Harrison
cd168f54b2
Removed obsolete constant
2015-02-24 19:42:18 +00:00
Adam Harrison
d031e8d246
Merge branch 'master' into 373_detect_udp_connectivity_breakage
...
Conflicts:
router/connection.go
2015-02-24 18:53:39 +00:00
Adam Harrison
7618ae033c
Simplify to single heartbeat timer
2015-02-24 18:31:18 +00:00