From aac765a2b17d83f4a3ccd73a1b91106bf249ee1c Mon Sep 17 00:00:00 2001 From: Andrey Mazo Date: Fri, 13 Mar 2009 21:09:40 +0300 Subject: [PATCH] Coding style changes: indentation, spaces. --- examples/mesh.cc | 141 +- examples/routing-table-test.cc | 284 ++-- .../l2-routing/l2-routing-hwmp/hwmp-rtable.cc | 344 ++-- .../l2-routing/l2-routing-hwmp/hwmp-rtable.h | 147 +- .../l2-routing/l2-routing-hwmp/hwmp-state.cc | 762 ++++----- .../l2-routing/l2-routing-hwmp/hwmp-state.h | 309 ++-- .../l2-routing/l2-routing-hwmp/hwmp.cc | 959 ++++++------ src/devices/l2-routing/l2-routing-hwmp/hwmp.h | 507 +++--- .../l2-routing-main/l2-routing-net-device.cc | 346 ++-- .../l2-routing-main/l2-routing-net-device.h | 259 ++- src/devices/mesh/mesh.h | 12 +- src/devices/wifi/dot11s-codes.h | 104 +- src/devices/wifi/dot11s-parameters.cc | 5 +- src/devices/wifi/dot11s-parameters.h | 39 +- .../wifi/dot11s-peer-management-element.cc | 110 +- .../wifi/dot11s-peer-management-element.h | 71 +- .../wifi/mesh-configuration-element.cc | 189 ++- src/devices/wifi/mesh-configuration-element.h | 77 +- src/devices/wifi/mesh-mgt-headers.cc | 214 +-- src/devices/wifi/mesh-mgt-headers.h | 112 +- .../wifi/mesh-wifi-beacon-timing-element.cc | 186 +-- .../wifi/mesh-wifi-beacon-timing-element.h | 145 +- src/devices/wifi/mesh-wifi-mac-header.cc | 390 ++--- src/devices/wifi/mesh-wifi-mac-header.h | 204 +-- src/devices/wifi/mesh-wifi-mac.cc | 1328 ++++++++-------- src/devices/wifi/mesh-wifi-mac.h | 671 ++++---- src/devices/wifi/mesh-wifi-peer-manager.cc | 1389 +++++++++-------- src/devices/wifi/mesh-wifi-peer-manager.h | 571 ++++--- .../mesh-wifi-perr-information-element.cc | 128 +- .../wifi/mesh-wifi-perr-information-element.h | 69 +- .../mesh-wifi-prep-information-element.cc | 210 +-- .../wifi/mesh-wifi-prep-information-element.h | 99 +- .../mesh-wifi-preq-information-element.cc | 412 ++--- .../wifi/mesh-wifi-preq-information-element.h | 176 +-- .../mesh-wifi-rann-information-element.cc | 124 +- .../wifi/mesh-wifi-rann-information-element.h | 81 +- src/devices/wifi/tx-statistics.cc | 151 +- src/devices/wifi/tx-statistics.h | 122 +- src/helper/hwmp-helper.cc | 2 +- src/helper/hwmp-helper.h | 2 +- src/helper/mesh-wifi-helper.cc | 279 ++-- src/helper/mesh-wifi-helper.h | 173 +- src/node/l2-routing-protocol.cc | 8 +- src/node/l2-routing-protocol.h | 223 ++- src/node/mac48-address-comparator.h | 26 +- 45 files changed, 6064 insertions(+), 6096 deletions(-) diff --git a/examples/mesh.cc b/examples/mesh.cc index 2a43fc787..1a167e4c4 100644 --- a/examples/mesh.cc +++ b/examples/mesh.cc @@ -3,7 +3,7 @@ * 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 + * 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, @@ -34,75 +34,74 @@ NS_LOG_COMPONENT_DEFINE ("TestMeshScript"); int main(int argc, char *argv[]) { - // Creating square topology with nNodes x nNodes grid: - int xSize = 5; - int ySize = 5; - double step = 100.0; //Grid with one-hop edge - double randomStart = 0.1; //One beacon interval - NodeContainer nodes; - CommandLine cmd; - MobilityHelper mobility; - MeshWifiHelper wifi; - NetDeviceContainer meshDevices; - // Defining a size of our network: - cmd.AddValue("x-size", "Number of nodes in a row grid", xSize); - cmd.AddValue("y-size", "Number of rows in a grid", ySize); - cmd.AddValue("step", "Size of edge in our grid", step); - cmd.AddValue("start", "Random start parameter", randomStart); - cmd.Parse (argc, argv); - NS_LOG_DEBUG("Grid:"< ptr,Mac48Address addr,std::vector *results, std::vector