// SubnetBroadcast returns the test network's subnet broadcast address.
SubnetBroadcast returns the test network's subnet broadcast address.
// SubnetBroadcast returns the test network ' s subnet broadcast address .
func (n *DUTTestNet) SubnetBroadcast() net.IP {
	addr := append([]byte(nil), n.RemoteIPv4...)
	mask := net.CIDRMask(n.IPv4PrefixLength, net.IPv4len*8)
	for i := range addr {
		addr[i] |= ^mask[i]
	}
	return addr
}
func ( n * DUTTestNet ) SubnetBroadcast ( ) net . IP { addr := append ( [ ] byte ( nil ) , n . RemoteIPv4 ... ) mask := net . CIDRMask ( n . IPv4PrefixLength , net . IPv4len * 8 ) for i := range addr { addr [ i ] |= ^ mask [ i ] } return addr }
SubnetBroadcast returns the test network's subnet broadcast address.
SubnetBroadcast returns the test network ' s subnet broadcast address .