MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
check_ipv6.inc
1 # Check if ipv6 is available.
2 #
3 # Parameters:
4 # $check_ipv6_just_check - don't skip the test if IPv6 is unsupported,
5 # just set the variable $check_ipv6_supported
6 #
7 --disable_query_log
8 --disable_result_log
9 --disable_abort_on_error
10 let $check_ipv6_supported=1;
11 connect (checkcon123456789,::1,root,,test);
12 if($mysql_errno)
13 {
14  let $check_ipv6_supported=0;
15  if(!$check_ipv6_just_check)
16  {
17  skip No IPv6 support;
18  }
19 }
20 connection default;
21 if(!$mysql_errno)
22 {
23  disconnect checkcon123456789;
24 }
25 --enable_abort_on_error
26 --enable_result_log
27 --enable_query_log
28 # end check
29