diff options
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/libpq/hba.h | 1 | ||||
| -rw-r--r-- | src/include/libpq/libpq-be.h | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/src/include/libpq/hba.h b/src/include/libpq/hba.h index b8e8df08e0a..eb6637f1c74 100644 --- a/src/include/libpq/hba.h +++ b/src/include/libpq/hba.h @@ -56,6 +56,7 @@ typedef struct struct sockaddr_storage addr; struct sockaddr_storage mask; IPCompareMethod ip_cmp_method; + char *hostname; UserAuth auth_method; char *usermap; diff --git a/src/include/libpq/libpq-be.h b/src/include/libpq/libpq-be.h index 83628c13f9f..1bc597c6acb 100644 --- a/src/include/libpq/libpq-be.h +++ b/src/include/libpq/libpq-be.h @@ -109,6 +109,10 @@ typedef struct Port SockAddr laddr; /* local addr (postmaster) */ SockAddr raddr; /* remote addr (client) */ char *remote_host; /* name (or ip addr) of remote host */ + char *remote_hostname; /* name (not ip addr) of remote host, if available */ + int remote_hostname_resolv; /* +1 = remote_hostname is known to resolve to client's IP address; + -1 = remote_hostname is known NOT to resolve to client's IP address; + 0 = we have not done the forward DNS lookup yet */ char *remote_port; /* text rep of remote port */ CAC_state canAcceptConnections; /* postmaster connection status */ |
