![]() |
User Manual, Developers Guide and API Documentation |
![]() |
00001 /****************************************************************************** 00002 * WiFiMac * 00003 * This file is part of openWNS (open Wireless Network Simulator) 00004 * _____________________________________________________________________________ 00005 * 00006 * Copyright (C) 2004-2007 00007 * Chair of Communication Networks (ComNets) 00008 * Kopernikusstr. 16, D-52074 Aachen, Germany 00009 * phone: ++49-241-80-27910, 00010 * fax: ++49-241-80-22242 00011 * email: info@openwns.org 00012 * www: http://www.openwns.org 00013 * _____________________________________________________________________________ 00014 * 00015 * openWNS is free software; you can redistribute it and/or modify it under the 00016 * terms of the GNU Lesser General Public License version 2 as published by the 00017 * Free Software Foundation; 00018 * 00019 * openWNS is distributed in the hope that it will be useful, but WITHOUT ANY 00020 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 00021 * A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 00022 * details. 00023 * 00024 * You should have received a copy of the GNU Lesser General Public License 00025 * along with this program. If not, see <http://www.gnu.org/licenses/>. 00026 * 00027 ******************************************************************************/ 00028 00029 #ifndef WIFIMAC_PATHSELECTION_FORWARDINGCOMMAND_HPP 00030 #define WIFIMAC_PATHSELECTION_FORWARDINGCOMMAND_HPP 00031 00032 #include <WNS/ldk/Command.hpp> 00033 #include <WNS/service/dll/Address.hpp> 00034 00035 00036 namespace wifimac { namespace pathselection { 00037 00038 class ForwardingCommand : 00039 public wns::ldk::Command 00040 { 00041 public: 00042 ForwardingCommand() 00043 { 00044 peer.TTL = 0; 00045 peer.toDS = false; 00046 peer.fromDS = false; 00047 peer.addressExtension = false; 00048 peer.finalDestination = wns::service::dll::UnicastAddress(); 00049 peer.originalSource = wns::service::dll::UnicastAddress(); 00050 peer.meshSource = wns::service::dll::UnicastAddress(); 00051 peer.meshDestination = wns::service::dll::UnicastAddress(); 00052 00053 magic.hopCount = 0; 00054 magic.isUplink = false; 00055 00056 magic.path.clear(); 00057 } 00058 struct {} local; 00059 00068 struct { 00072 int TTL; 00073 00077 bool toDS; 00078 00082 bool fromDS; 00083 00087 bool addressExtension; 00088 00094 wns::service::dll::UnicastAddress meshSource; 00095 00096 00102 wns::service::dll::UnicastAddress meshDestination; 00103 00107 wns::service::dll::UnicastAddress originalSource; 00108 00112 wns::service::dll::UnicastAddress finalDestination; 00113 00114 } peer; 00115 00116 struct { 00120 std::vector<wns::service::dll::UnicastAddress> path; 00121 00125 int hopCount; 00126 00130 bool isUplink; 00131 } magic; 00132 }; 00133 } 00134 } 00135 #endif // WIFIMAC_PATHSELECTION_FORWARDINGCOMMAND_HPP
1.5.5