#include "common.h"
#include "gnet_stats.h"
#include "gmsg.h"
#include "if/gnet_property_priv.h"
#include "lib/event.h"
#include "lib/endian.h"
#include "lib/override.h"
|
Value: do { \ if ( \ (reason == MSG_DROP_ROUTE_LOST) || \ (reason == MSG_DROP_DUPLICATE) || \ (reason == MSG_DROP_NO_ROUTE) \ ) \ gnet_stats.general[GNR_ROUTING_ERRORS]++; \ \ gnet_stats.drop_reason[reason][MSG_TOTAL]++; \ gnet_stats.drop_reason[reason][t]++; \ gnet_stats.pkg.dropped[MSG_TOTAL]++; \ gnet_stats.pkg.dropped[t]++; \ gnet_stats.byte.dropped[MSG_TOTAL] += (s); \ gnet_stats.byte.dropped[t] += (s); \ gs->pkg.dropped[MSG_TOTAL]++; \ gs->pkg.dropped[t]++; \ gs->byte.dropped[MSG_TOTAL] += (s); \ gs->byte.dropped[t] += (s); \ } while (0) |
|
|
|
|
|
|
|
|
|
|
|
|
|
Called when Gnutella header has been read.
|
|
Called when Gnutella payload has been read.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Initial value: { N_("Bad size"), N_("Too small"), N_("Too large"), N_("Way too large"), N_("Unknown message type"), N_("Unexpected message"), N_("Message sent with TTL = 0"), N_("Improper hops/ttl combination"), N_("Max TTL exceeded"), N_("Message throttle"), N_("Unusable Pong"), N_("Hard TTL limit reached"), N_("Max hop count reached"), N_("Route lost"), N_("No route"), N_("Duplicate message"), N_("Message to banned GUID"), N_("Node shutting down"), N_("TX flow control"), N_("Query text had no trailing NUL"), N_("Query text too short"), N_("Query had unnecessary overhead"), N_("Message with malformed SHA1"), N_("Message with malformed UTF-8"), N_("Malformed Query Hit"), N_("Bad return address"), N_("Hostile IP address"), } |
|
|