mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Use is_cidr in INET/CIDR structure, rather than the generic 'type'.
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* $PostgreSQL: pgsql/src/include/utils/inet.h,v 1.20 2004/12/31 22:03:46 pgsql Exp $
|
||||
* $PostgreSQL: pgsql/src/include/utils/inet.h,v 1.21 2006/01/23 21:45:47 momjian Exp $
|
||||
*
|
||||
*-------------------------------------------------------------------------
|
||||
*/
|
||||
@@ -22,7 +22,7 @@ typedef struct
|
||||
{
|
||||
unsigned char family; /* PGSQL_AF_INET or PGSQL_AF_INET6 */
|
||||
unsigned char bits; /* number of bits in netmask */
|
||||
unsigned char type; /* 0 = inet, 1 = cidr */
|
||||
bool is_cidr; /* is cidr? */
|
||||
unsigned char ipaddr[16]; /* up to 128 bits of address */
|
||||
} inet_struct;
|
||||
|
||||
|
Reference in New Issue
Block a user