diff options
Diffstat (limited to 'src/include/utils/builtins.h')
-rw-r--r-- | src/include/utils/builtins.h | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h index f3c57d4deb5..49b849de09c 100644 --- a/src/include/utils/builtins.h +++ b/src/include/utils/builtins.h @@ -6,7 +6,7 @@ * * Copyright (c) 1994, Regents of the University of California * - * $Id: builtins.h,v 1.60 1998/10/08 18:30:49 momjian Exp $ + * $Id: builtins.h,v 1.61 1998/10/12 04:07:51 momjian Exp $ * * NOTES * This should normally only be included by fmgr.h. @@ -515,6 +515,9 @@ char *inet_net_ntop(int af, const void *src, int bits, char *dst, size_t size); /* inet_net_pton.c */ int inet_net_pton(int af, const char *src, void *dst, size_t size); +char *inet_cidr_ntop(int af, const void *src, size_t len, int bits, char *dst, size_t size); +int inet_cidr_pton(int af, const void *src, void *dst, size_t size, int *used); + /* inet.c */ inet *inet_in(char *str); char *inet_out(inet * addr); @@ -530,6 +533,13 @@ bool inet_sup(inet * a1, inet * a2); bool inet_supeq(inet * a1, inet * a2); int4 inet_cmp(inet * a1, inet * a2); +text *inet_netmask(inet * addr); +int4 inet_masklen(inet * addr); +text *inet_host(inet * addr); +text *inet_network_without_bits(inet * addr); +text *inet_network_with_bits(inet * addr); +text *inet_broadcast(inet * addr); + /* mac.c */ macaddr *macaddr_in(char *str); |