set_masklen ( inet, integer ) → inetSets the netmask length for an
inet value. The address part does not change.set_masklen(inet '192.168.1.5/24', 16) → 192.168.1.5/16
Sets the netmask length for an inet value.
set_masklen ( inet, integer ) → inetSets the netmask length for an
inet value. The address part does not change.set_masklen(inet '192.168.1.5/24', 16) → 192.168.1.5/16
set_masklen ( cidr, integer ) → cidrSets the netmask length for a
cidr value. Address bits to the right of the new netmask are set to zero.set_masklen(cidr '192.168.1.0/24', 16) → 192.168.0.0/16
Definition snapshot: 2026-09-14T13:14:25.684213+00:00@99e6866c · English manual source