FreeRADIUS InkBridge

%ip.v4.broadcast( <ipv4 prefix> )

Get the broadcast address from an IPv4 prefix.

Return: ipv4

Particularly useful for use when handling DHCPv4 requests, where Broadcast-Address is required in the reply, and the subnet the client is being placed in is known.

Example
Network-Subnet := 192.168.1.0/24
reply.Broadcast-Address := %ip.v4.broadcast(Network-Subnet)
Output
192.168.1.255