-
+
Functions and Operators
masklen('192.168.1.5/24')
24
+ |
+ set_masklen(inet,integer)
+ inet
+ set netmask length for inet value
+ set_masklen('192.168.1.5/24',16)
+ 192.168.1.5/16
+
|
netmask(inet)
inet
All of the functions for inet can be applied to
cidr values as well. The host>(),
text>(), and abbrev>() functions are primarily
- intended to offer alternative display formats.
+ intended to offer alternative display formats. You can cast a text
+ field to inet using normal casting syntax: inet(fieldname) or
+ fieldname::inet.