public static void statReceive(Packet p) {
		ClientStats s = getStats(p.getSender());

		if (p instanceof KeepAlivePacket) {
			// nothing?
			return;
		}
		// route
		else if (p instanceof UnicastDataPacket) {
			if (p.getAddress() == c.src) {
				if (c.currentTest == Client.SZENARIO.CLOSE_BY) {
					s.nearRouteReceive++;
				} else {
					s.distantRouteReceive++;
				}
				packetReceive++;
			}
		}
		// flood
		else if (p instanceof DataPacket) {
	//		Logger.getInstance().println("Stat DataPacket for "+ Byte.toString(p.getSender()) +", destination "+ (p.getAddress() == c.src) +" ("+ Byte.toString(p.getAddress()) +"; "+ Byte.toString(c.src) +"), test: "+ c.currentTest , Logger.SEVERE); 			
			if (p.getAddress() == c.src) {
				if (c.currentTest == Client.SZENARIO.CLOSE_BY) {
					s.nearFloodReceive++;
				} else {
					s.distantFloodReceive++;
				}
				packetReceive++;
			}
		}
		// route reply
		else if (p instanceof RREPPacket) {
			if (p.getAddress() == c.src) {
				routeResponseReceive++;
			}
		}
	}