diff options
author | Rinat Ibragimov <ri@tempesta-tech.com> | 2020-09-10 03:39:20 +0300 |
---|---|---|
committer | Daniel Black <daniel@mariadb.org> | 2021-03-05 08:25:52 +1100 |
commit | b3abcf80a1be71502c1e25e0feb40ccea4648f4e (patch) | |
tree | 3816a06130886a744327c58674cf2e2c8d44ac25 /include | |
parent | f691d9865becfd242ba44cc632034433336af1e7 (diff) | |
download | mariadb-git-b3abcf80a1be71502c1e25e0feb40ccea4648f4e.tar.gz |
MDEV-6536: make --bind=hostname to listen on both IPv6 and IPv4 addresses
Binding to a hostname now makes MariaDB server to listen on all addresses
that hostname resolves to.
Rebased to 10.6 by Daniel Black
Closes: #1668
Diffstat (limited to 'include')
-rw-r--r-- | include/mysql/psi/mysql_socket.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/mysql/psi/mysql_socket.h b/include/mysql/psi/mysql_socket.h index aa85daaaab1..59489fabe25 100644 --- a/include/mysql/psi/mysql_socket.h +++ b/include/mysql/psi/mysql_socket.h @@ -75,6 +75,15 @@ struct st_mysql_socket /** The real socket descriptor. */ my_socket fd; + /** Is this a Unix-domain socket? */ + char is_unix_domain_socket; + + /** Is this a socket opened for the extra port? */ + char is_extra_port; + + /** Address family of the socket. (See sa_family from struct sockaddr). */ + unsigned short address_family; + /** The instrumentation hook. Note that this hook is not conditionally defined, @@ -105,7 +114,7 @@ typedef struct st_mysql_socket MYSQL_SOCKET; static inline MYSQL_SOCKET mysql_socket_invalid() { - MYSQL_SOCKET mysql_socket= {INVALID_SOCKET, NULL}; + MYSQL_SOCKET mysql_socket= {INVALID_SOCKET, 0, 0, 0, NULL}; return mysql_socket; } |