]> Sergey Matveev's repositories - btrtrc.git/blobdiff - bep40.go
Promote ipPort to its own file
[btrtrc.git] / bep40.go
index fa696bdac57233917e868cc40e2664ebb00b09ac..6c507d354280e5156f3cbc1996939c2167d3d356 100644 (file)
--- a/bep40.go
+++ b/bep40.go
@@ -13,11 +13,6 @@ var table = crc32.MakeTable(crc32.Castagnoli)
 
 type peerPriority = uint32
 
-type ipPort struct {
-       IP   net.IP
-       Port uint16
-}
-
 func sameSubnet(ones, bits int, a, b net.IP) bool {
        mask := net.CIDRMask(ones, bits)
        return a.Mask(mask).Equal(b.Mask(mask))