资源简介
linux下,使用ns2.34实现802.11p协议的仿真的代码补丁,最新版的ns2.35中的802.11ext好像就是802.11p的扩展
代码片段和文件信息
/*
* Copyright (c) 1996 The Regents of the University of California.
* All rights reserved.
*
* Redistribution and use in source and binary forms with or without
* modification are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the Network Research
* Group at Lawrence Berkeley National Laboratory.
* 4. Neither the name of the University nor of the Laboratory may be used
* to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ‘‘AS IS‘‘ AND
* ANY EXPRESS OR IMPLIED WARRANTIES INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT INDIRECT INCIDENTAL SPECIAL EXEMPLARY OR CONSEQUENTIAL
* DAMAGES (INCLUDING BUT NOT LIMITED TO PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE DATA OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY WHETHER IN CONTRACT STRICT
* LIABILITY OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* This module contributed by John Brezak .
* January 31 1996
*
* @(#) $Header: /cvsroot/nsnam/ns-2/common/win32.cv 1.6 2006/02/21 15:20:18 mahrenho Exp $ (LBL)
*/
#ifdef WIN32
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include “config.h“
#include
/* forward declarations */
int WinGetUserName(ClientData Tcl_Interp* int ac char**av);
int WinGetHostName(ClientData Tcl_Interp* int ac char**av);
int WinPutRegistry(ClientData Tcl_Interp* int ac char**av);
int WinGetRegistry(ClientData Tcl_Interp* int ac char**av);
void TkConsoleCreate();
int TkConsoleInit(Tcl_Interp* interp);
int
uname(struct utsname *ub)
{
char *ptr;
DWORD version;
SYSTEM_INFO sysinfo;
char hostname[4096];
version = GetVersion();
GetSystemInfo(&sysinfo);
switch (sysinfo.wProcessorArchitecture) {
case PROCESSOR_ARCHITECTURE_INTEL:
(void)strcpy(ub->machine “ix86“);
break;
case PROCESSOR_ARCHITECTURE_MIPS :
(void)strcpy(u
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 8221 2010-08-02 12:39 ns-2.34_802.11p补丁包\.cproject
文件 2292 2010-08-02 12:39 ns-2.34_802.11p补丁包\.project
文件 3272 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\acto-adc.cc
文件 3631 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\actp-adc.cc
文件 3144 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\adaptive-receiver.cc
文件 2643 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\adaptive-receiver.h
文件 3872 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\adc.cc
文件 2968 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\adc.h
文件 3400 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\consrcvr.cc
文件 4697 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\estimator.cc
文件 3441 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\estimator.h
文件 2914 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\expavg-est.cc
文件 3619 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\hb-adc.cc
文件 3653 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\ms-adc.cc
文件 2843 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\null-estimator.cc
文件 4137 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\param-adc.cc
文件 2901 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\pointsample-est.cc
文件 2645 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\resv.cc
文件 2829 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\resv.h
文件 8827 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\sa.cc
文件 3177 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\sa.h
文件 6096 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\sali
文件 2871 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\sali
文件 5439 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\simple-intserv-sched.cc
文件 4527 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\tbf.cc
文件 2786 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\tbf.h
文件 3276 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\timewindow-est.cc
文件 2223 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\ump.cc
文件 2335 2010-08-02 12:39 ns-2.34_802.11p补丁包\adc\ump.h
文件 25175 2010-08-02 12:39 ns-2.34_802.11p补丁包\allinone\install
............此处省略3702个文件信息
评论
共有 条评论