new weave status, weave status ..., and weave report

This commit is contained in:
Adam Harrison authored and Matthias Radestock committed 2015-08-11 12:15:13 +01:00
1 parent 00ecff09f7
commit fc9a1c8664
27 files changed
+784 -493

No files matched your search

-12
View File
@@ -1,8 +1,6 @@
package router
import (
"bytes"
"fmt"
"net"
"sync"
"time"
@@ -82,16 +80,6 @@ func (cache *MacCache) Delete(peer *Peer) bool {
return found
}
func (cache *MacCache) String() string {
var buf bytes.Buffer
cache.RLock()
defer cache.RUnlock()
for key, entry := range cache.table {
fmt.Fprintf(&buf, "%v -> %s (%v)\n", intmac(key), entry.peer, entry.lastSeen)
}
return buf.String()
}
func (cache *MacCache) setExpiryTimer() {
cache.expiryTimer = time.AfterFunc(cache.maxAge/10, func() { cache.expire() })
}