mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-09-23 21:05:00 +00:00
Merge 2.1.9 fixes for pt-pmp.
This commit is contained in:
@@ -9,7 +9,7 @@ BEGIN {
|
||||
use strict;
|
||||
use warnings FATAL => 'all';
|
||||
use English qw(-no_match_vars);
|
||||
use Test::More tests => 72;
|
||||
use Test::More;
|
||||
|
||||
use MySQLProtocolParser;
|
||||
use TcpdumpParser;
|
||||
@@ -38,7 +38,6 @@ test_protocol_parser(
|
||||
pos_in_log => 0,
|
||||
bytes => length('select "hello world" as greeting'),
|
||||
cmd => 'Query',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -66,7 +65,6 @@ test_protocol_parser(
|
||||
pos_in_log => 1470,
|
||||
bytes => length('administrator command: Connect'),
|
||||
cmd => 'Admin',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -84,7 +82,6 @@ test_protocol_parser(
|
||||
pos_in_log => 2449,
|
||||
ts => '090412 11:00:13.118643',
|
||||
user => 'msandbox',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -102,7 +99,6 @@ test_protocol_parser(
|
||||
pos_in_log => 3298,
|
||||
ts => '090412 11:00:13.119079',
|
||||
user => 'msandbox',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -120,7 +116,6 @@ test_protocol_parser(
|
||||
pos_in_log => '4186',
|
||||
ts => '090412 11:00:13.119487',
|
||||
user => 'msandbox',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -177,7 +172,7 @@ test_protocol_parser(
|
||||
pos_in_log => 0,
|
||||
bytes => length('select 5 from foo'),
|
||||
cmd => 'Query',
|
||||
Error_no => "#1046",
|
||||
Error_no => "1046",
|
||||
Error_msg => 'No database selected',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
@@ -194,7 +189,7 @@ test_protocol_parser(
|
||||
protocol => $protocol,
|
||||
file => "$sample/tcpdump005.txt",
|
||||
result => [
|
||||
{ Error_no => 'none',
|
||||
{
|
||||
Rows_affected => 1,
|
||||
Query_time => '0.000435',
|
||||
Thread_id => 4294967296,
|
||||
@@ -212,7 +207,7 @@ test_protocol_parser(
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
},
|
||||
{ Error_no => 'none',
|
||||
{
|
||||
Rows_affected => 2,
|
||||
Query_time => '0.000565',
|
||||
Thread_id => 4294967296,
|
||||
@@ -252,7 +247,6 @@ test_protocol_parser(
|
||||
pos_in_log => 0,
|
||||
bytes => length('select * from t'),
|
||||
cmd => 'Query',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -280,7 +274,6 @@ test_protocol_parser(
|
||||
pos_in_log => 0,
|
||||
bytes => length('insert into t values(current_date)'),
|
||||
cmd => 'Query',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 1,
|
||||
Warning_count => 1,
|
||||
No_good_index_used => 'No',
|
||||
@@ -412,7 +405,6 @@ test_protocol_parser(
|
||||
pos_in_log => 0,
|
||||
bytes => length('select "hello world" as greeting'),
|
||||
cmd => 'Query',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -434,7 +426,7 @@ test_protocol_parser(
|
||||
file => "$sample/tcpdump013.txt",
|
||||
desc => 'old password and compression',
|
||||
result => [
|
||||
{ Error_no => 'none',
|
||||
{
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.034355',
|
||||
@@ -466,7 +458,6 @@ test_protocol_parser(
|
||||
desc => 'in-stream compression detection',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.001375',
|
||||
@@ -503,7 +494,6 @@ SKIP: {
|
||||
desc => 'compressed data',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.006415',
|
||||
@@ -522,7 +512,6 @@ SKIP: {
|
||||
user => 'msandbox',
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'Yes',
|
||||
Query_time => '0.002884',
|
||||
@@ -541,7 +530,6 @@ SKIP: {
|
||||
user => 'msandbox',
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000000',
|
||||
@@ -574,7 +562,6 @@ test_protocol_parser(
|
||||
desc => 'TCP retransmission',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.001000',
|
||||
@@ -607,7 +594,6 @@ test_protocol_parser(
|
||||
desc => 'Multiple servers',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000206',
|
||||
@@ -626,7 +612,6 @@ test_protocol_parser(
|
||||
user => undef,
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000203',
|
||||
@@ -656,7 +641,6 @@ test_protocol_parser(
|
||||
desc => 'Multiple servers but watch only one',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000206',
|
||||
@@ -713,7 +697,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, simple, no NULL',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000286',
|
||||
@@ -733,7 +716,6 @@ test_protocol_parser(
|
||||
Statement_id => 2,
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'Yes',
|
||||
Query_time => '0.000281',
|
||||
@@ -753,7 +735,6 @@ test_protocol_parser(
|
||||
Statement_id => 2,
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000000',
|
||||
@@ -782,7 +763,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, NULL value',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000303',
|
||||
@@ -802,7 +782,6 @@ test_protocol_parser(
|
||||
Statement_id => 2,
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000186',
|
||||
@@ -832,7 +811,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, string, char and float',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000315',
|
||||
@@ -852,7 +830,6 @@ test_protocol_parser(
|
||||
Statement_id => 2,
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000249',
|
||||
@@ -882,7 +859,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, all NULL',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000278',
|
||||
@@ -902,7 +878,6 @@ test_protocol_parser(
|
||||
Statement_id => 2,
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000159',
|
||||
@@ -932,7 +907,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, no params',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000268',
|
||||
@@ -952,7 +926,6 @@ test_protocol_parser(
|
||||
Statement_id => 2,
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'Yes',
|
||||
Query_time => '0.000234',
|
||||
@@ -982,7 +955,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, close statement',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000000',
|
||||
@@ -1011,7 +983,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, reset statement',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000023',
|
||||
@@ -1041,7 +1012,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, multiple exec, new param',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000292',
|
||||
@@ -1061,7 +1031,6 @@ test_protocol_parser(
|
||||
user => undef
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'Yes',
|
||||
Query_time => '0.000254',
|
||||
@@ -1081,7 +1050,6 @@ test_protocol_parser(
|
||||
user => undef
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'Yes',
|
||||
Query_time => '0.000190',
|
||||
@@ -1101,7 +1069,6 @@ test_protocol_parser(
|
||||
user => undef
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'Yes',
|
||||
Query_time => '0.000166',
|
||||
@@ -1131,7 +1098,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, real param types',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000221',
|
||||
@@ -1151,7 +1117,6 @@ test_protocol_parser(
|
||||
user => undef
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000203',
|
||||
@@ -1171,7 +1136,6 @@ test_protocol_parser(
|
||||
user => undef
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000000',
|
||||
@@ -1190,7 +1154,6 @@ test_protocol_parser(
|
||||
user => undef
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000000',
|
||||
@@ -1219,7 +1182,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, ok response to execute',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000046',
|
||||
@@ -1239,7 +1201,6 @@ test_protocol_parser(
|
||||
user => undef
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000024',
|
||||
@@ -1269,7 +1230,6 @@ test_protocol_parser(
|
||||
desc => 'prepared statements, NULL bitmap',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000288',
|
||||
@@ -1289,7 +1249,6 @@ test_protocol_parser(
|
||||
user => undef
|
||||
},
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000322',
|
||||
@@ -1322,7 +1281,6 @@ test_protocol_parser(
|
||||
desc => 'issue 761',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000431',
|
||||
@@ -1354,7 +1312,6 @@ test_protocol_parser(
|
||||
desc => 'issue 760',
|
||||
result => [
|
||||
{
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000430',
|
||||
@@ -1397,7 +1354,6 @@ test_protocol_parser(
|
||||
pos_in_log => 1470,
|
||||
bytes => length('administrator command: Connect'),
|
||||
cmd => 'Admin',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -1415,7 +1371,6 @@ test_protocol_parser(
|
||||
pos_in_log => 2449,
|
||||
ts => '090412 11:00:13.119079',
|
||||
user => 'msandbox',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -1433,7 +1388,6 @@ test_protocol_parser(
|
||||
pos_in_log => 3337,
|
||||
ts => '090412 11:00:13.119487',
|
||||
user => 'msandbox',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -1441,7 +1395,6 @@ test_protocol_parser(
|
||||
},
|
||||
# port reused...
|
||||
{ ts => '090412 12:00:00.800000',
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.700000',
|
||||
@@ -1459,7 +1412,6 @@ test_protocol_parser(
|
||||
user => 'msandbox',
|
||||
},
|
||||
{ ts => '090412 12:00:01.000000',
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.100000',
|
||||
@@ -1477,7 +1429,6 @@ test_protocol_parser(
|
||||
user => 'msandbox',
|
||||
},
|
||||
{ ts => '090412 12:00:01.100000',
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000000',
|
||||
@@ -1516,7 +1467,6 @@ test_protocol_parser(
|
||||
pos_in_log => 1470,
|
||||
bytes => length('administrator command: Connect'),
|
||||
cmd => 'Admin',
|
||||
Error_no => 'none',
|
||||
Rows_affected => 0,
|
||||
Warning_count => 0,
|
||||
No_good_index_used => 'No',
|
||||
@@ -1524,7 +1474,6 @@ test_protocol_parser(
|
||||
},
|
||||
# port reused...
|
||||
{ ts => '090412 12:00:00.800000',
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.700000',
|
||||
@@ -1542,7 +1491,6 @@ test_protocol_parser(
|
||||
user => 'msandbox',
|
||||
},
|
||||
{ ts => '090412 12:00:01.000000',
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.100000',
|
||||
@@ -1560,7 +1508,6 @@ test_protocol_parser(
|
||||
user => 'msandbox',
|
||||
},
|
||||
{ ts => '090412 12:00:01.100000',
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000000',
|
||||
@@ -1588,7 +1535,6 @@ test_protocol_parser(
|
||||
desc => 'no server ok (issue 794)',
|
||||
result => [
|
||||
{ ts => '090412 12:00:01.000000',
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000000',
|
||||
@@ -1606,7 +1552,6 @@ test_protocol_parser(
|
||||
user => undef
|
||||
},
|
||||
{ ts => '090412 12:00:03.000000',
|
||||
Error_no => 'none',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '1.000000',
|
||||
@@ -1659,7 +1604,7 @@ test_protocol_parser(
|
||||
[
|
||||
{
|
||||
Error_msg => "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1",
|
||||
Error_no => '#1064',
|
||||
Error_no => '1064',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000316',
|
||||
@@ -1679,7 +1624,7 @@ test_protocol_parser(
|
||||
},
|
||||
{
|
||||
Error_msg => 'Unknown system variable \'nono\'',
|
||||
Error_no => '#1193',
|
||||
Error_no => '1193',
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '0.000329',
|
||||
@@ -1700,7 +1645,107 @@ test_protocol_parser(
|
||||
],
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Bug 1103045: pt-query-digest fails to parse non-SQL errors
|
||||
# https://bugs.launchpad.net/percona-toolkit/+bug/1103045
|
||||
# #############################################################################
|
||||
|
||||
$protocol = new MySQLProtocolParser(
|
||||
server => '127.0.0.1',
|
||||
port => '12345',
|
||||
);
|
||||
|
||||
test_protocol_parser(
|
||||
parser => $tcpdump,
|
||||
protocol => $protocol,
|
||||
file => "$sample/tcpdump043.txt",
|
||||
desc => 'Bad connection',
|
||||
result =>
|
||||
[
|
||||
{
|
||||
Error_msg => 'Got packets out of order',
|
||||
Error_no => 1156,
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '3.536306',
|
||||
Rows_affected => 0,
|
||||
Thread_id => 27,
|
||||
Warning_count => 0,
|
||||
arg => 'administrator command: Connect',
|
||||
bytes => 30,
|
||||
cmd => 'Admin',
|
||||
db => undef,
|
||||
host => '127.0.0.1',
|
||||
ip => '127.0.0.1',
|
||||
port => '62160',
|
||||
pos_in_log => undef,
|
||||
ts => '130124 13:03:28.672987',
|
||||
user => undef,
|
||||
}
|
||||
],
|
||||
);
|
||||
|
||||
test_protocol_parser(
|
||||
parser => $tcpdump,
|
||||
protocol => $protocol,
|
||||
file => "$sample/tcpdump042.txt",
|
||||
desc => 'Client went away during handshake',
|
||||
result => [
|
||||
{
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '9.998411',
|
||||
Rows_affected => 0,
|
||||
Thread_id => 24,
|
||||
Warning_count => 0,
|
||||
arg => 'administrator command: Connect',
|
||||
bytes => 30,
|
||||
cmd => 'Admin',
|
||||
db => undef,
|
||||
host => '127.0.0.1',
|
||||
ip => '127.0.0.1',
|
||||
port => '62133',
|
||||
pos_in_log => undef,
|
||||
ts => '130124 12:55:48.274417',
|
||||
user => undef,
|
||||
Error_msg => 'Client closed connection during handshake',
|
||||
}
|
||||
],
|
||||
);
|
||||
|
||||
$protocol = new MySQLProtocolParser(
|
||||
server => '100.0.0.1',
|
||||
);
|
||||
|
||||
test_protocol_parser(
|
||||
parser => $tcpdump,
|
||||
protocol => $protocol,
|
||||
file => "$sample/tcpdump044.txt",
|
||||
desc => 'Client aborted connection (bug 1103045)',
|
||||
result => [
|
||||
{
|
||||
No_good_index_used => 'No',
|
||||
No_index_used => 'No',
|
||||
Query_time => '3.819507',
|
||||
Rows_affected => 0,
|
||||
Thread_id => 13,
|
||||
Warning_count => 0,
|
||||
arg => 'administrator command: Connect',
|
||||
bytes => 30,
|
||||
cmd => 'Admin',
|
||||
db => undef,
|
||||
host => '100.0.0.2',
|
||||
ip => '100.0.0.2',
|
||||
port => '44432',
|
||||
pos_in_log => undef,
|
||||
ts => '130122 09:55:57.793375',
|
||||
user => undef,
|
||||
Error_msg => 'Client closed connection during handshake',
|
||||
},
|
||||
],
|
||||
);
|
||||
|
||||
# #############################################################################
|
||||
# Done.
|
||||
# #############################################################################
|
||||
exit;
|
||||
done_testing;
|
||||
|
59
t/lib/samples/tcpdump/tcpdump042.txt
Normal file
59
t/lib/samples/tcpdump/tcpdump042.txt
Normal file
@@ -0,0 +1,59 @@
|
||||
2013-01-24 12:55:38.276006 IP 127.0.0.1.62133 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0040 b290 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2b5 3039 58cf 8e7c 0000 0000
|
||||
0x0020: b002 ffff fe34 0000 0204 3fd8 0103 0303
|
||||
0x0030: 0101 080a 0580 fe1f 0000 0000 0402 0000
|
||||
2013-01-24 12:55:38.276053 IP 127.0.0.1.12345 > 127.0.0.1.62133: tcp 0
|
||||
0x0000: 4500 0040 65de 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2b5 1c49 dad0 58cf 8e7d
|
||||
0x0020: b012 ffff fe34 0000 0204 3fd8 0103 0303
|
||||
0x0030: 0101 080a 0580 fe1f 0580 fe1f 0402 0000
|
||||
2013-01-24 12:55:38.276062 IP 127.0.0.1.62133 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0034 2fb2 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2b5 3039 58cf 8e7d 1c49 dad1
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0580 fe1f
|
||||
0x0030: 0580 fe1f
|
||||
2013-01-24 12:55:38.276071 IP 127.0.0.1.12345 > 127.0.0.1.62133: tcp 0
|
||||
0x0000: 4500 0034 4cba 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2b5 1c49 dad1 58cf 8e7d
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0580 fe1f
|
||||
0x0030: 0580 fe1f
|
||||
2013-01-24 12:55:38.278813 IP 127.0.0.1.12345 > 127.0.0.1.62133: tcp 60
|
||||
0x0000: 4508 0070 e5f9 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2b5 1c49 dad1 58cf 8e7d
|
||||
0x0020: 8018 ffff fe64 0000 0101 080a 0580 fe1f
|
||||
0x0030: 0580 fe1f 3800 0000 0a35 2e31 2e35 332d
|
||||
0x0040: 6c6f 6700 1800 0000 6553 5179 332d 2925
|
||||
0x0050: 00ff f708 0200 0000 0000 0000 0000 0000
|
||||
0x0060: 0000 007b 6154 5f62 4d3d 274a 2269 6900
|
||||
2013-01-24 12:55:38.278831 IP 127.0.0.1.62133 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0034 0cb3 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2b5 3039 58cf 8e7d 1c49 db0d
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0580 fe1f
|
||||
0x0030: 0580 fe1f
|
||||
2013-01-24 12:55:48.274417 IP 127.0.0.1.12345 > 127.0.0.1.62133: tcp 0
|
||||
0x0000: 4508 0034 5ba9 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2b5 1c49 db0d 58cf 8e7d
|
||||
0x0020: 8011 ffff fe28 0000 0101 080a 0580 fe83
|
||||
0x0030: 0580 fe1f
|
||||
2013-01-24 12:55:48.274515 IP 127.0.0.1.62133 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0034 4493 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2b5 3039 58cf 8e7d 1c49 db0e
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0580 fe83
|
||||
0x0030: 0580 fe83
|
||||
2013-01-24 12:55:48.274541 IP 127.0.0.1.12345 > 127.0.0.1.62133: tcp 0
|
||||
0x0000: 4508 0034 cfea 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2b5 1c49 db0e 58cf 8e7d
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0580 fe83
|
||||
0x0030: 0580 fe83
|
||||
2013-01-24 12:55:48.274741 IP 127.0.0.1.62133 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0034 6e98 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2b5 3039 58cf 8e7d 1c49 db0e
|
||||
0x0020: 8011 ffff fe28 0000 0101 080a 0580 fe83
|
||||
0x0030: 0580 fe83
|
||||
2013-01-24 12:55:48.274836 IP 127.0.0.1.12345 > 127.0.0.1.62133: tcp 0
|
||||
0x0000: 4508 0034 bcc4 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2b5 1c49 db0e 58cf 8e7e
|
||||
0x0020: 8010 fffe fe28 0000 0101 080a 0580 fe83
|
||||
0x0030: 0580 fe83
|
||||
|
82
t/lib/samples/tcpdump/tcpdump043.txt
Normal file
82
t/lib/samples/tcpdump/tcpdump043.txt
Normal file
@@ -0,0 +1,82 @@
|
||||
2013-01-24 13:03:25.136681 IP 127.0.0.1.62160 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0040 ea0e 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2d0 3039 ad71 3d49 0000 0000
|
||||
0x0020: b002 ffff fe34 0000 0204 3fd8 0103 0303
|
||||
0x0030: 0101 080a 0581 1055 0000 0000 0402 0000
|
||||
2013-01-24 13:03:25.136728 IP 127.0.0.1.12345 > 127.0.0.1.62160: tcp 0
|
||||
0x0000: 4500 0040 dc6f 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2d0 7d01 6881 ad71 3d4a
|
||||
0x0020: b012 ffff fe34 0000 0204 3fd8 0103 0303
|
||||
0x0030: 0101 080a 0581 1055 0581 1055 0402 0000
|
||||
2013-01-24 13:03:25.136737 IP 127.0.0.1.62160 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0034 0e53 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2d0 3039 ad71 3d4a 7d01 6882
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0581 1055
|
||||
0x0030: 0581 1055
|
||||
2013-01-24 13:03:25.136746 IP 127.0.0.1.12345 > 127.0.0.1.62160: tcp 0
|
||||
0x0000: 4500 0034 f54e 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2d0 7d01 6882 ad71 3d4a
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0581 1055
|
||||
0x0030: 0581 1055
|
||||
2013-01-24 13:03:25.146062 IP 127.0.0.1.12345 > 127.0.0.1.62160: tcp 60
|
||||
0x0000: 4508 0070 6334 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2d0 7d01 6882 ad71 3d4a
|
||||
0x0020: 8018 ffff fe64 0000 0101 080a 0581 1055
|
||||
0x0030: 0581 1055 3800 0000 0a35 2e31 2e35 332d
|
||||
0x0040: 6c6f 6700 1b00 0000 4d34 5946 3267 3260
|
||||
0x0050: 00ff f708 0200 0000 0000 0000 0000 0000
|
||||
0x0060: 0000 006c 225e 3633 3a6c 3048 5863 6800
|
||||
2013-01-24 13:03:25.146080 IP 127.0.0.1.62160 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0034 3e79 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2d0 3039 ad71 3d4a 7d01 68be
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0581 1055
|
||||
0x0030: 0581 1055
|
||||
2013-01-24 13:03:28.672802 IP 127.0.0.1.62160 > 127.0.0.1.12345: tcp 15
|
||||
0x0000: 4510 0043 145a 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2d0 3039 ad71 3d4a 7d01 68be
|
||||
0x0020: 8018 ffff fe37 0000 0101 080a 0581 1079
|
||||
0x0030: 0581 1055 6865 6c6c 6f2c 2077 6f72 6c64
|
||||
0x0040: 210d 0a
|
||||
2013-01-24 13:03:28.672856 IP 127.0.0.1.12345 > 127.0.0.1.62160: tcp 0
|
||||
0x0000: 4508 0034 b07b 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2d0 7d01 68be ad71 3d59
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0581 1079
|
||||
0x0030: 0581 1079
|
||||
2013-01-24 13:03:28.672987 IP 127.0.0.1.12345 > 127.0.0.1.62160: tcp 31
|
||||
0x0000: 4508 0053 6336 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2d0 7d01 68be ad71 3d59
|
||||
0x0020: 8018 ffff fe47 0000 0101 080a 0581 1079
|
||||
0x0030: 0581 1079 1b00 0001 ff84 0447 6f74 2070
|
||||
0x0040: 6163 6b65 7473 206f 7574 206f 6620 6f72
|
||||
0x0050: 6465 72
|
||||
2013-01-24 13:03:28.673017 IP 127.0.0.1.62160 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0034 fb76 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2d0 3039 ad71 3d59 7d01 68dd
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0581 1079
|
||||
0x0030: 0581 1079
|
||||
2013-01-24 13:03:28.673103 IP 127.0.0.1.12345 > 127.0.0.1.62160: tcp 0
|
||||
0x0000: 4508 0034 ae21 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2d0 7d01 68dd ad71 3d59
|
||||
0x0020: 8011 ffff fe28 0000 0101 080a 0581 1079
|
||||
0x0030: 0581 1079
|
||||
2013-01-24 13:03:28.673139 IP 127.0.0.1.62160 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0034 d821 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2d0 3039 ad71 3d59 7d01 68de
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0581 1079
|
||||
0x0030: 0581 1079
|
||||
2013-01-24 13:03:28.673156 IP 127.0.0.1.12345 > 127.0.0.1.62160: tcp 0
|
||||
0x0000: 4508 0034 ab2e 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2d0 7d01 68de ad71 3d59
|
||||
0x0020: 8010 ffff fe28 0000 0101 080a 0581 1079
|
||||
0x0030: 0581 1079
|
||||
2013-01-24 13:03:28.673444 IP 127.0.0.1.62160 > 127.0.0.1.12345: tcp 0
|
||||
0x0000: 4510 0034 e03d 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 f2d0 3039 ad71 3d59 7d01 68de
|
||||
0x0020: 8011 ffff fe28 0000 0101 080a 0581 1079
|
||||
0x0030: 0581 1079
|
||||
2013-01-24 13:03:28.673464 IP 127.0.0.1.12345 > 127.0.0.1.62160: tcp 0
|
||||
0x0000: 4508 0034 b22d 4000 4006 0000 7f00 0001
|
||||
0x0010: 7f00 0001 3039 f2d0 7d01 68de ad71 3d5a
|
||||
0x0020: 8010 fffe fe28 0000 0101 080a 0581 1079
|
||||
0x0030: 0581 1079
|
||||
|
70
t/lib/samples/tcpdump/tcpdump044.txt
Normal file
70
t/lib/samples/tcpdump/tcpdump044.txt
Normal file
@@ -0,0 +1,70 @@
|
||||
2013-01-22 09:55:53.973868 IP 100.0.0.2.44432 > 100.0.0.1.3306: tcp 0
|
||||
0x0000: 4510 003c bbae 4000 4006 f033 0a1c bd48
|
||||
0x0010: 0a1c bd49 ad90 0cea af89 ab81 0000 0000
|
||||
0x0020: a002 16d0 f7a5 0000 0204 05b4 0402 080a
|
||||
0x0030: 850b 102f 0000 0000 0103 0307
|
||||
2013-01-22 09:55:53.973885 IP 100.0.0.1.3306 > 100.0.0.2.44432: tcp 0
|
||||
0x0000: 4500 003c 0000 4000 4006 abf2 0a1c bd49
|
||||
0x0010: 0a1c bd48 0cea ad90 bcdd 5ddd af89 ab82
|
||||
0x0020: a012 16a0 e720 0000 0204 05b4 0402 080a
|
||||
0x0030: 7a96 7b52 850b 102f 0103 0307
|
||||
2013-01-22 09:55:53.973886 IP 100.0.0.1.3306 > 100.0.0.2.44432: tcp 0
|
||||
0x0000: 4500 003c 0000 4000 4006 abf2 0a1c bd49
|
||||
0x0010: 0a1c bd48 0cea ad90 bcdd 5ddd af89 ab82
|
||||
0x0020: a012 16a0 e720 0000 0204 05b4 0402 080a
|
||||
0x0030: 7a96 7b52 850b 102f 0103 0307
|
||||
2013-01-22 09:55:53.973929 IP 100.0.0.2.44432 > 100.0.0.1.3306: tcp 0
|
||||
0x0000: 4510 0034 bbaf 4000 4006 f03a 0a1c bd48
|
||||
0x0010: 0a1c bd49 ad90 0cea af89 ab82 bcdd 5dde
|
||||
0x0020: 8010 002e 2c5f 0000 0101 080a 850b 102f
|
||||
0x0030: 7a96 7b52
|
||||
2013-01-22 09:55:53.974017 IP 100.0.0.1.3306 > 100.0.0.2.44432: tcp 113
|
||||
0x0000: 4508 00a5 268c 4000 4006 84f5 0a1c bd49
|
||||
0x0010: 0a1c bd48 0cea ad90 bcdd 5dde af89 ab82
|
||||
0x0020: 8018 002e 8f61 0000 0101 080a 7a96 7b52
|
||||
0x0030: 850b 102f 6d00 0000 0a35 2e35 2e32 382d
|
||||
0x0040: 656e 7465 7270 7269 7365 2d63 6f6d 6d65
|
||||
0x0050: 7263 6961 6c2d 6164 7661 6e63 6564 2d6c
|
||||
0x0060: 6f67 000d 0000 006c 706d 5338 5d4a 3c00
|
||||
0x0070: fff7 0802 000f 8015 0000 0000 0000 0000
|
||||
0x0080: 0000 2f72 7265 247e 7347 4565 4f3c 006d
|
||||
0x0090: 7973 716c 5f6e 6174 6976 655f 7061 7373
|
||||
0x00a0: 776f 7264 00
|
||||
2013-01-22 09:55:53.974019 IP 100.0.0.1.3306 > 100.0.0.2.44432: tcp 113
|
||||
0x0000: 4508 00a5 268c 4000 4006 84f5 0a1c bd49
|
||||
0x0010: 0a1c bd48 0cea ad90 bcdd 5dde af89 ab82
|
||||
0x0020: 8018 002e 8f61 0000 0101 080a 7a96 7b52
|
||||
0x0030: 850b 102f 6d00 0000 0a35 2e35 2e32 382d
|
||||
0x0040: 656e 7465 7270 7269 7365 2d63 6f6d 6d65
|
||||
0x0050: 7263 6961 6c2d 6164 7661 6e63 6564 2d6c
|
||||
0x0060: 6f67 000d 0000 006c 706d 5338 5d4a 3c00
|
||||
0x0070: fff7 0802 000f 8015 0000 0000 0000 0000
|
||||
0x0080: 0000 2f72 7265 247e 7347 4565 4f3c 006d
|
||||
0x0090: 7973 716c 5f6e 6174 6976 655f 7061 7373
|
||||
0x00a0: 776f 7264 00
|
||||
2013-01-22 09:55:53.974064 IP 100.0.0.2.44432 > 100.0.0.1.3306: tcp 0
|
||||
0x0000: 4510 0034 bbb0 4000 4006 f039 0a1c bd48
|
||||
0x0010: 0a1c bd49 ad90 0cea af89 ab82 bcdd 5e4f
|
||||
0x0020: 8010 002e 2bee 0000 0101 080a 850b 102f
|
||||
0x0030: 7a96 7b52
|
||||
2013-01-22 09:55:57.793375 IP 100.0.0.2.44432 > 100.0.0.1.3306: tcp 0
|
||||
0x0000: 4510 0034 bbb1 4000 4006 f038 0a1c bd48
|
||||
0x0010: 0a1c bd49 ad90 0cea af89 ab82 bcdd 5e4f
|
||||
0x0020: 8011 002e 1d02 0000 0101 080a 850b 1f1a
|
||||
0x0030: 7a96 7b52
|
||||
2013-01-22 09:55:57.793485 IP 100.0.0.1.3306 > 100.0.0.2.44432: tcp 0
|
||||
0x0000: 4508 0034 268d 4000 4006 8565 0a1c bd49
|
||||
0x0010: 0a1c bd48 0cea ad90 bcdd 5e4f af89 ab83
|
||||
0x0020: 8011 002e 0e16 0000 0101 080a 7a96 8a3d
|
||||
0x0030: 850b 1f1a
|
||||
2013-01-22 09:55:57.793489 IP 100.0.0.1.3306 > 100.0.0.2.44432: tcp 0
|
||||
0x0000: 4508 0034 268d 4000 4006 8565 0a1c bd49
|
||||
0x0010: 0a1c bd48 0cea ad90 bcdd 5e4f af89 ab83
|
||||
0x0020: 8011 002e 0e16 0000 0101 080a 7a96 8a3d
|
||||
0x0030: 850b 1f1a
|
||||
2013-01-22 09:55:57.793529 IP 100.0.0.2.44432 > 100.0.0.1.3306: tcp 0
|
||||
0x0000: 4510 0034 bbb2 4000 4006 f037 0a1c bd48
|
||||
0x0010: 0a1c bd49 ad90 0cea af89 ab83 bcdd 5e50
|
||||
0x0020: 8010 002e 0e15 0000 0101 080a 850b 1f1b
|
||||
0x0030: 7a96 8a3d
|
||||
|
Reference in New Issue
Block a user