summaryrefslogtreecommitdiff
path: root/src/include/utils
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>1998-10-08 00:19:47 +0000
committerBruce Momjian <bruce@momjian.us>1998-10-08 00:19:47 +0000
commit8849655d24bf6d73102b92f900d6d78b6600dca2 (patch)
treeb8d68fb746e2c9fff2b497610d3d4b3dd1fd2b42 /src/include/utils
parentac5a8b9ab578843fc04b940fcb5562063ff9b5c7 (diff)
downloadpostgresql-8849655d24bf6d73102b92f900d6d78b6600dca2.tar.gz
I agree. I think, though, that the best argument presented in the
debate was from Paul Vixie, who wanted INET to be the name covering both IPV4 and IPV6. The following kit makes the needed changes: Tom Ivar Helbekkmo
Diffstat (limited to 'src/include/utils')
-rw-r--r--src/include/utils/builtins.h33
-rw-r--r--src/include/utils/inet.h (renamed from src/include/utils/mac.h)6
2 files changed, 19 insertions, 20 deletions
diff --git a/src/include/utils/builtins.h b/src/include/utils/builtins.h
index 9b3ca4c627..e02fd31bb6 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.57 1998/10/04 15:31:07 momjian Exp $
+ * $Id: builtins.h,v 1.58 1998/10/08 00:19:43 momjian Exp $
*
* NOTES
* This should normally only be included by fmgr.h.
@@ -28,7 +28,7 @@
#include <utils/nabstime.h>
#include <utils/int8.h>
#include <utils/cash.h>
-#include <utils/mac.h>
+#include <utils/network.h>
#include <utils/rel.h>
/*
@@ -518,21 +518,20 @@ 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);
-/* ip.c */
-ipaddr *ipaddr_in(char *str);
-char *ipaddr_out(ipaddr * addr);
-bool ipaddr_lt(ipaddr * a1, ipaddr * a2);
-bool ipaddr_le(ipaddr * a1, ipaddr * a2);
-bool ipaddr_eq(ipaddr * a1, ipaddr * a2);
-bool ipaddr_ge(ipaddr * a1, ipaddr * a2);
-bool ipaddr_gt(ipaddr * a1, ipaddr * a2);
-bool ipaddr_ne(ipaddr * a1, ipaddr * a2);
-bool ipaddr_sub(ipaddr * a1, ipaddr * a2);
-bool ipaddr_subeq(ipaddr * a1, ipaddr * a2);
-bool ipaddr_sup(ipaddr * a1, ipaddr * a2);
-bool ipaddr_supeq(ipaddr * a1, ipaddr * a2);
-int4 ipaddr_cmp(ipaddr * a1, ipaddr * a2);
-int v4bitncmp(unsigned int a1, unsigned int a2, int bits);
+/* inet.c */
+inet *inet_in(char *str);
+char *inet_out(inet * addr);
+bool inet_lt(inet * a1, inet * a2);
+bool inet_le(inet * a1, inet * a2);
+bool inet_eq(inet * a1, inet * a2);
+bool inet_ge(inet * a1, inet * a2);
+bool inet_gt(inet * a1, inet * a2);
+bool inet_ne(inet * a1, inet * a2);
+bool inet_sub(inet * a1, inet * a2);
+bool inet_subeq(inet * a1, inet * a2);
+bool inet_sup(inet * a1, inet * a2);
+bool inet_supeq(inet * a1, inet * a2);
+int4 inet_cmp(inet * a1, inet * a2);
/* mac.c */
diff --git a/src/include/utils/mac.h b/src/include/utils/inet.h
index df8a676221..5b5546ffbf 100644
--- a/src/include/utils/mac.h
+++ b/src/include/utils/inet.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: mac.h,v 1.2 1998/10/04 15:31:09 momjian Exp $
+ * $Id: inet.h,v 1.1 1998/10/08 00:19:45 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -26,9 +26,9 @@ typedef struct
unsigned int ipv4_addr; /* network byte order */
/* add IPV6 address type here */
} addr;
-} ipaddr_struct;
+} inet_struct;
-typedef struct varlena ipaddr;
+typedef struct varlena inet;
/*
* This is the internal storage format for MAC addresses: