Matthias Radestock
7cfb79cfc1
close connection when failing to decrypt packets
...
Since we may never recover from that if nonces got out of sync.
Closes #274 .
2014-12-28 19:52:56 +00:00
Matthias Radestock
5e6bb8ee67
cosmetic: more logical field order
2014-12-25 13:57:31 +00:00
Matthias Radestock
75ed7d52b9
refactor: give Peers knowledge of Ourself.Peer and MacCache
...
so their use (when applying updates and performing gc) is opaque
2014-12-25 13:49:58 +00:00
Matthias Radestock
465915d7d4
refactor: split out LocalPeer
...
This has been a source of confusion for a long time.
2014-12-25 12:57:45 +00:00
Matthias Radestock
945a5cf7fe
refactor: reduce dependencies of ConnectionMaker
...
it doesn't need to know about Router, just Ourself and Peers
2014-12-24 19:53:11 +00:00
Matthias Radestock
b3be24248e
refactor: narrow dependencies of Routes
...
it doesn't need to know about the Router, just Ourself and Peers.
2014-12-24 19:40:18 +00:00
Matthias Radestock
2b2f47c031
refactor: rename PeerCache to Peers
...
It was never much of a cache, and that aspect of it is certainly not
its defining characteristic.
2014-12-24 19:23:43 +00:00
Matthias Radestock
e8f836ad85
refactor: rename 'Topology' to 'Routes'
...
Since that is what it is. By contrast, when the docs talk about
topology they actually refer to the peer connectivity graph.
2014-12-24 19:12:01 +00:00
Matthias Radestock
3b3d5e6261
document mac_cache max age constraint
2014-12-18 18:21:31 +00:00
Matthias Radestock
1b140e3aa9
don't enter src MACs of forwarded packets in our cache
...
There is no point, and it populates the cache with entries we don't
need. Local containers will still need to issue an ARP request when
they first talk to an IP corresponding to the MAC, so we learn about
the MAC at that point, just as normally happens.
2014-12-18 17:39:01 +00:00
Matthias Radestock
83464a38eb
remove explicit multicast detection
...
We don't need. Multicast addresses never appear as sources and hence
never end up in the peer_cache. And the router always broadcasts
frames with destination addresses that aren't in the peer cache.
2014-10-24 14:30:58 +01:00
Bryan Boreham
9b90e119e5
Say 'name' instead of 'identity' in log and status
2014-10-24 11:38:10 +01:00
Matthias Radestock
4ddfc47448
don't trip over truncated udp packets
...
and log such events, plus any other errors during decoding, nicely,
including the connection on which this occured.
Closes #123 .
2014-10-15 21:03:15 +01:00
Matthias Radestock
d1de3eac3e
log something when we drop a UDP packet
2014-10-15 15:56:23 +01:00
Matthias Radestock
5acefd5d23
refactor: reduce indent
2014-10-15 15:55:44 +01:00
Matthias Radestock
a587fef9c4
fix package name following move
2014-10-15 15:20:49 +01:00
Matthias Radestock
e2fd1fda31
move router code
2014-10-15 15:07:42 +01:00