From bc010a045c6efd29b091fc06faac3a7c5e575afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Sat, 20 Sep 2014 12:40:51 +0200 Subject: [PATCH] udp_proxy: don't drop messages in the last flight Resending the last flight is on the todo-list, but I want to be able to test what's already done now. --- programs/test/udp_proxy.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/programs/test/udp_proxy.c b/programs/test/udp_proxy.c index 48549cff5..191bb96f1 100644 --- a/programs/test/udp_proxy.c +++ b/programs/test/udp_proxy.c @@ -251,7 +251,7 @@ static const char *msg_type( unsigned char *msg, size_t len ) case SSL_HS_CERTIFICATE_VERIFY: return( "CertificateVerify" ); case SSL_HS_CLIENT_KEY_EXCHANGE: return( "ClientKeyExchange" ); case SSL_HS_FINISHED: return( "Finished" ); - default: return( "Unkown handshake" ); + default: return( "Unknown handshake" ); } } @@ -366,6 +366,9 @@ int handle_message( const char *way, int dst, int src ) cur.len > (unsigned) opt.mtu ) || ( opt.drop != 0 && strcmp( cur.type, "ApplicationData" ) != 0 && + strcmp( cur.type, "NewSessionTicket" ) != 0 && // temporary + strcmp( cur.type, "ChangeCipherSpec" ) != 0 && // temporary + strcmp( cur.type, "Unknown handshake" ) != 0 && // temporary ++drop_cnt == opt.drop ) ) { drop_cnt = 0; @@ -374,6 +377,9 @@ int handle_message( const char *way, int dst, int src ) strcmp( cur.type, "ChangeCipherSpec" ) == 0 ) || ( opt.delay != 0 && strcmp( cur.type, "ApplicationData" ) != 0 && + strcmp( cur.type, "NewSessionTicket" ) != 0 && // temporary + strcmp( cur.type, "ChangeCipherSpec" ) != 0 && // temporary + strcmp( cur.type, "Unknown handshake" ) != 0 && // temporary ++delay_cnt == opt.delay ) ) { delay_cnt = 0;