Some more useful logs, to troubleshoot.
parent
b0f1d7a644
commit
8f3452988e
3
arp.go
3
arp.go
|
@ -135,9 +135,6 @@ func sendARP(iface *net.Interface, m *arpMessage) error {
|
|||
if m.opcode == opARPReply {
|
||||
target = m.targetHardwareAddress
|
||||
}
|
||||
// for i := 0; i < len(target); i++ {
|
||||
// ll.Addr[i] = target[i]
|
||||
// }
|
||||
|
||||
log.Println("Copied ARP: ", copy(ll.Addr[:], target))
|
||||
|
||||
|
|
|
@ -17,13 +17,15 @@ func (mip *AbstractMulticast) AddUniqueAndSort(hier int64) {
|
|||
} else {
|
||||
mip.HierarchyArray = append(mip.HierarchyArray, hier)
|
||||
sort.Slice(mip.HierarchyArray, func(i, j int) bool { return mip.HierarchyArray[i] < mip.HierarchyArray[j] })
|
||||
log.Println(mip.HierarchyArray)
|
||||
log.Println("Here the numbers known:", mip.HierarchyArray)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func (mip *AbstractMulticast) IsAlpha(hier int64) bool {
|
||||
|
||||
log.Println("Element 0 is :", mip.HierarchyArray[0])
|
||||
|
||||
return mip.HierarchyArray[0] == hier
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue