Author: Not specified Language: c
Description: Not specified Timestamp: 2013-06-09 23:05:27 +0000
View raw paste Reply
  1.         // Prevent using getstatus as an amplifier
  2.         if ( SVC_RateLimitAddress( from, 10, 1000 ) ) {
  3.                 Com_DPrintf( "SVC_Status: rate limit from %s exceeded, dropping request\n",
  4.                         NET_AdrToString( from ) );
  5.                 return;
  6.         }
  7.  
  8.         // Allow getstatus to be DoSed relatively easily, but prevent
  9.         // excess outbound bandwidth usage when being flooded inbound
  10.         if ( SVC_RateLimit( &outboundLeakyBucket, 10, 100 ) ) {
  11.                 Com_DPrintf( "SVC_Status: rate limit exceeded, dropping request\n" );
  12.                 return;
  13.         }
View raw paste Reply