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.
This commit is contained in:
Matthias Radestock committed 2014-10-15 21:03:15 +01:00
1 parent e8ec9e84ce
commit 4ddfc47448
4 files changed
+24 -4

No files matched your search

+4
View File
@@ -129,6 +129,10 @@ type NameCollisionError struct {
Name PeerName
}
type PacketDecodingError struct {
Desc string
}
type LocalAddress struct {
ip net.IP
network *net.IPNet