diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-10-17 04:08:40 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-10-17 04:08:40 +0000 |
commit | 71a5da47d288c9dcf48b13da3416c7f51df38a8e (patch) | |
tree | 0a34dd78db62210e5d2cde4f3a5a6d36f92f7da3 /src/backend/utils/adt/inet.c | |
parent | 0c430306fec1fa0fef166e0fdc5dfcd756b2dd5c (diff) |
Disable inet.
Diffstat (limited to 'src/backend/utils/adt/inet.c')
-rw-r--r-- | src/backend/utils/adt/inet.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/backend/utils/adt/inet.c b/src/backend/utils/adt/inet.c index 969e5f1ee77..9d547184c27 100644 --- a/src/backend/utils/adt/inet.c +++ b/src/backend/utils/adt/inet.c @@ -3,7 +3,7 @@ * is for IP V4 CIDR notation, but prepared for V6: just * add the necessary bits where the comments indicate. * - * $Id: inet.c,v 1.4 1998/10/17 03:59:13 momjian Exp $ + * $Id: inet.c,v 1.5 1998/10/17 04:08:40 momjian Exp $ */ #include <sys/types.h> @@ -57,7 +57,9 @@ inet_in(char *src) } /* First, try for an IP V4 address: */ ip_family(dst) = AF_INET; +#ifdef BAD bits = inet_net_pton(ip_family(dst), src, &ip_v4addr(dst), ip_addrsize(dst), NULL); +#endif if ((bits < 0) || (bits > 32)) { /* Go for an IPV6 address here, before faulting out: */ @@ -85,12 +87,14 @@ inet_out(inet *src) if (ip_family(src) == AF_INET) { /* It's an IP V4 address: */ +#ifdef BAD if (inet_net_ntop(AF_INET, &ip_v4addr(src), 4, ip_bits(src), tmp, sizeof(tmp)) < 0) { elog(ERROR, "unable to print address (%s)", strerror(errno)); return (NULL); } +#endif } else { |