- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for BroadcastAddress (0.19 sec)
-
src/main/java/jcifs/config/BaseConfiguration.java
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Thu Jan 05 13:06:39 UTC 2023 - 20.4K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/ipallocator.go
if max == 0 { return 0 } max-- } return max } // broadcastAddress returns the broadcast address of the subnet // The broadcast address is obtained by setting all the host bits // in a subnet to 1. // network 192.168.0.0/24 : subnet bits 24 host bits 32 - 24 = 8 // broadcast address 192.168.0.255 func broadcastAddress(subnet netip.Prefix) (netip.Addr, error) { base := subnet.Masked().Addr()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:04 UTC 2023 - 17K bytes - Viewed (0) -
pkg/util/iptree/iptree.go
// the broadcast address is not considered contained for IPv4 if !ip.Is6() { ipLast, err := broadcastAddress(prefix) if err != nil || ipLast == ip { return false } } return prefix.Contains(ip) } // TODO(aojea) consolidate all these IPs utils // pkg/registry/core/service/ipallocator/ipallocator.go // broadcastAddress returns the broadcast address of the subnet
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 31 21:05:04 UTC 2023 - 17.7K bytes - Viewed (0) -
pkg/registry/core/service/ipallocator/ipallocator_test.go
want: netip.MustParseAddr("fc00::ffff"), }, } for _, tt := range tests { t.Run(tt.name, func(t *testing.T) { if got, err := broadcastAddress(tt.subnet); !reflect.DeepEqual(got, tt.want) || err != nil { t.Errorf("broadcastAddress() = %v, want %v", got, tt.want) } }) } } func Test_hostsPerNetwork(t *testing.T) { testCases := []struct { name string cidr string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Jun 25 13:14:46 UTC 2023 - 24.2K bytes - Viewed (0) -
src/syscall/types_windows.go
// will be fixed to change variable type as suitable. type SockaddrGen [24]byte type InterfaceInfo struct { Flags uint32 Address SockaddrGen BroadcastAddress SockaddrGen Netmask SockaddrGen } type IpAddressString struct { String [16]byte } type IpMaskString IpAddressString type IpAddrString struct { Next *IpAddrString
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Feb 20 06:04:31 UTC 2024 - 27.8K bytes - Viewed (0)