**** xref:xlat/time/offset.adoc[UTC Offset]
**** xref:xlat/time/request.adoc[Request Time]
+*** xref:xlat/ipv4/index.adoc[IPv4 Handling]
+**** xref:xlat/ipv4/broadcast.adoc[Broadcast Address]
+**** xref:xlat/ipv4/netmask.adoc[Subnet Mask]
+
** xref:dictionary/index.adoc[Dictionaries]
*** xref:dictionary/alias.adoc[ALIAS]
*** xref:dictionary/attribute.adoc[ATTRIBUTE]
| xref:xlat/time/offset.adoc[offset] | Return UTC offset.
| xref:xlat/time/request.adoc[request] | Return the time when the request was received.
|=====
+
+== IPv4 Handling
+.IPv4 handling
+[options="header"]
+[cols="30%,70%"]
+|=====
+| *Function* | *Description*
+| xref:xlat/ipv4/broadcast.adoc[broadcast] | Get the broadcast address from an IPv4 prefix
+| xref:xlat/ipv4/netmask.adoc[netmask] | Get the netmask from an IPv4 prefix
+|=====
--- /dev/null
+= %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
+
+[source,unlang]
+----
+Network-Subnet := 192.168.1.0/24
+reply.Broadcast-Address := %ip.v4.broadcast(Network-Subnet)
+----
+
+.Output
+
+```
+192.168.1.255
+```
+
+// Copyright (C) 2025 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
+// This documentation was developed by Network RADIUS SAS.
--- /dev/null
+= IPv4 handling
+
+The following functions perform manipulation of IPv4 addresses / subnets.
+
+.IPv4 handling
+[options="header"]
+[cols="30%,70%"]
+|=====
+| *Function* | *Description*
+| xref:xlat/ipv4/broadcast.adoc[broadcast] | Get the broadcast address from an IPv4 prefix
+| xref:xlat/ipv4/netmask.adoc[netmask] | Get the netmask from an IPv4 prefix
+|=====
+
+// Copyright (C) 2025 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
+// This documentation was developed by Network RADIUS SAS.
--- /dev/null
+= %ip.v4.netmask( <ipv4 prefix> )
+
+Get the netmask from an IPv4 prefix
+
+.Return: _ipv4_
+
+Particularly useful for use when handling DHCPv4 requests, where
+`Subnet-Mask` is required in the reply, and the subnet the client is
+being placed in is known.
+
+.Example
+
+[source,unlang]
+----
+Network-Subnet := 192.168.1.0/24
+reply.Subnet-Mask := %ip.v4.netmask(Network-Subnet)
+----
+
+.Output
+
+```
+255.255.255.0
+```
+
+// Copyright (C) 2025 Network RADIUS SAS. Licenced under CC-by-NC 4.0.
+// This documentation was developed by Network RADIUS SAS.