
Title: broadcast_dst()
broadcast_dst(ip_port, dest) returns TRUE if dest, the second parameter of ip_broadcast_dst(), is the broadcast address of the ip port ip_port, the first parameter.
Which addresses are broadcast addresses for a given ip port is best shown with an example:
If an ip port has an ip address/subnet pair of 192.168.1.5/255.255.255.252, the following ip addresses are considered to be broadcast addresses:
192.168.1.7 (the broadcast address for the given subnet)
192.168.1.255 (the broadcast address for the address's class C network)
255.255.255.255
If BSD rules apply (i.e., iff IP_42BSD_BCAST is set), the following ip addresses are also considered to be broadcast addresses:
192.168.1.4 (the network address for the given subnet)
192.168.1.0 (the network address for the address's class C network)