Bryan Boreham
ba72999b04
cosmetic
2014-09-10 16:02:17 +01:00
Bryan Boreham
4335615688
Track command-line targets in a separate set, to simplify tracking of targets
2014-09-10 14:12:37 +01:00
Bryan Boreham
8271cbf007
In status message, change "Reconnects" to "Connections" to match what it now does
2014-09-09 11:45:09 +01:00
Bryan Boreham
8b3e97b96a
Change from stating which peer we expect to be on the end of a connection to accepting any known peer
2014-09-08 14:07:42 +01:00
Matthias Radestock
8b8fc06fcf
cosmetic
2014-09-04 07:36:10 +01:00
Matthias Radestock
679e9b52b2
add some error logging that was missing
2014-09-04 07:32:11 +01:00
Matthias Radestock
e72803e564
remove duplicate code
2014-09-04 07:29:11 +01:00
Matthias Radestock
b19abe4eab
move logging out of peer_cache
2014-09-04 00:02:08 +01:00
Matthias Radestock
9706934d89
log mac expiry
...
for symmetry with mac discovery
and w/o polluting the mac_cache code with logging
2014-09-03 23:43:40 +01:00
Matthias Radestock
7a09d97cf5
when forwarding frames, send icmp 3.4 packets back to the source
...
...instead of injecting them on the local interface.
fixes #2
2014-08-22 15:18:31 +01:00
Matthias Radestock
775a603a2c
log relaying
2014-08-21 21:52:14 +01:00
Matthias Radestock
1a41df1edf
zero copy capture
...
delay copying until necessary
2014-08-20 16:08:43 +01:00
Matthias Radestock
276e3b8487
refactor: move packet i/o initialisation into one place
2014-08-20 14:53:27 +01:00
Matthias Radestock
7c4464c852
pcap handles are not thread safe
...
they contain an errbuf; there might be other issues too.
So we must use different handles in the sniffer and udplistener
goroutines.
2014-08-20 11:42:55 +01:00
Matthias Radestock
cb2cdc90cc
introduce abstraction for packet i/o
2014-08-20 11:18:12 +01:00
Matthias Radestock
5b7666a850
cosmetic
2014-08-20 11:01:18 +01:00
Matthias Radestock
9dd15f4abf
use dst address as source of icmp 3.4, instead of router address
...
For some reason, packets injected with a src ip that isn't in the
sub-net of the dst ip get dropped.
fixes #1
2014-08-20 09:43:59 +01:00
Matthias Radestock
1ef941e77e
capture and inject on the same pcap handle
...
...since there's no need to have separate handles
Also, make router.Start() perform all startup, including starting a
sniffer goroutine. The main goroutine is now kept alive by the signal
handling loop.
2014-08-19 15:47:09 +01:00
Matthias Radestock
b4635bc7ff
refactor: don't pass around router.Ourself
2014-08-19 15:27:57 +01:00
Matthias Radestock
e6feefa1fc
initial commit
2014-08-18 17:55:26 +01:00