From ae8d2399a5cafae050a4474882fa66d7f1ea7426 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 23 Sep 2014 10:01:06 +0200 Subject: [PATCH] udp_proxy: also drop messages from the last flight --- programs/test/udp_proxy.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/programs/test/udp_proxy.c b/programs/test/udp_proxy.c index 7b788d7cd..da90b1a36 100644 --- a/programs/test/udp_proxy.c +++ b/programs/test/udp_proxy.c @@ -88,7 +88,7 @@ int main( void ) " duplicate about 1:N packets randomly\n" \ " delay=%%d default: 0 (no delayed packets)\n" \ " delay about 1:N packets randomly\n" \ - " delay_ccs=%%d default: 0 (don't delay ChangeCipherSuite)\n" \ + " delay_ccs=%%d default: 0 (don't delay ChangeCipherSpec)\n" \ " drop=%%d default: 0 (no dropped packets)\n" \ " drop about 1:N packets randomly\n" \ " mtu=%%d default: 0 (unlimited)\n" \ @@ -351,9 +351,6 @@ 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 rand() % opt.drop == 0 ) ) { ; /* Nothing to do */ @@ -362,9 +359,6 @@ 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 rand() % opt.delay == 0 ) ) { memcpy( &prev, &cur, sizeof( packet ) );