src/devices/mesh/dot11s-parameters.h
author Kirill Andreev <andreev@iitp.ru>
Sun, 22 Mar 2009 12:34:24 +0300
changeset 4865 e331ed5d3662
parent 4860 bb5194d57734
permissions -rw-r--r--
Added header for peer link frame (first fields without information element)

/* -*-  Mode: C++; c-file-style: "gnu"; indent-tabs-mode:nil; -*- */
/*
 * Copyright (c) 2008,2009 IITP RAS
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation;
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Authors: Aleksey Kovalenko <kovalenko@iitp.ru>
 *          Kirill Andreev <andreev@iitp.ru>
 */


#ifndef DOT11S_PARAMETERS_H
#define DOT11S_PARAMETERS_H
#include "ns3/uinteger.h"
#include "ns3/nstime.h"

namespace ns3 {

#define TU_TO_TIME(x) (MicroSeconds((x)*1024))
#define TIME_TO_TU(x) ((x).GetMicroSeconds()/1024)

/**
  * \ingroup mesh
*/
struct dot11sParameters
{
  /** Peer Link  */
  static uint8_t dot11MeshMaxRetries;
  static Time dot11MeshRetryTimeout;
  static Time dot11MeshHoldingTimeout;
  static Time dot11MeshConfirmTimeout;
  /** HWMP */
  static uint8_t dot11MeshHWMPmaxPREQretries;
  static Time dot11MeshHWMPnetDiameterTraversalTime;
  static Time dot11MeshHWMPpreqMinInterval;
  static Time dot11MeshHWMPperrMinInterval;
  static Time dot11MeshHWMPactiveRootTimeout;
  static Time dot11MeshHWMPactivePathTimeout;
  static Time dot11MeshHWMPpathToRootInterval;
  static Time dot11MeshHWMPrannInterval;
};

};
#endif