亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? dsr_proto.cc

?? 修改的dsr源文件,需要的趕快下載啦
?? CC
字號:
/* * dsr_proto.cc * Copyright (C) 2000 by the University of Southern California * $Id: dsr_proto.cc,v 1.3 2005/08/25 18:58:04 johnh Exp $ * * 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. * * * The copyright of this module includes the following * linking-with-specific-other-licenses addition: * * In addition, as a special exception, the copyright holders of * this module give you permission to combine (via static or * dynamic linking) this module with free software programs or * libraries that are released under the GNU LGPL and with code * included in the standard release of ns-2 under the Apache 2.0 * license or under otherwise-compatible licenses with advertising * requirements (or modified versions of such code, with unchanged * license).  You may copy and distribute such a system following the * terms of the GNU GPL for this module and the licenses of the * other code concerned, provided that you include the source code of * that other code when and as the GNU GPL requires distribution of * source code. * * Note that people who make modified versions of this module * are not obligated to grant this special exception for their * modified versions; it is their choice whether to do so.  The GNU * General Public License gives permission to release a modified * version without this exception; this exception also makes it * possible to release a modified version which carries forward this * exception. * *///// Other copyrights might apply to parts of this software and are so// noted when applicable.//// Ported from CMU/Monarch's code, appropriate copyright applies.  /* -*- c++ -*-    dsr_proto.cc   the DSR routing protocol agent      */#include <packet.h>#include <object.h>#include <agent.h>#include <trace.h>#include <ip.h>#include "routecache.h"#include "dsr_proto.h"static class DSRProtoClass : public TclClass {public:        DSRProtoClass() : TclClass("Agent/DSRProto") {}        TclObject* create(int, const char*const*) {                return (new DSRProto);        }} class_DSRProto;DSRProto::DSRProto() : Agent(PT_DSR){  // dst_ = (IP_BROADCAST << 8) | RT_PORT;  dst_.addr_ = IP_BROADCAST;  dst_.port_ = RT_PORT;}voidDSRProto::recv(Packet* p, Handler* callback){  }voidDSRProto::testinit(){  //struct hdr_sr hsr;  hdr_sr hsr;    if (net_id == ID(1,::IP))    {      printf("adding route to 1\n");      hsr.init();      hsr.append_addr( 1<<8, NS_AF_INET );      hsr.append_addr( 2<<8, NS_AF_INET );      hsr.append_addr( 3<<8, NS_AF_INET );      hsr.append_addr( 4<<8, NS_AF_INET );            routecache->addRoute(Path(hsr.addrs(), hsr.num_addrs()), 0.0, ID(1,::IP));    }    if (net_id == ID(3,::IP))    {      printf("adding route to 3\n");      hsr.init();      hsr.append_addr( 3<<8, NS_AF_INET );      hsr.append_addr( 2<<8, NS_AF_INET );      hsr.append_addr( 1<<8, NS_AF_INET );            routecache->addRoute(Path(hsr.addrs(), hsr.num_addrs()), 0.0, ID(3,::IP));    }}intDSRProto::command(int argc, const char*const* argv){  if(argc == 2)     {      if (strcasecmp(argv[1], "testinit") == 0)	{	  testinit();	  return TCL_OK;	}    }  if(argc == 3)     {      if(strcasecmp(argv[1], "tracetarget") == 0) {	tracetarget = (Trace*) TclObject::lookup(argv[2]);	if(tracetarget == 0)	  return TCL_ERROR;	return TCL_OK;      }      else if(strcasecmp(argv[1], "routecache") == 0) {	routecache = (RouteCache*) TclObject::lookup(argv[2]);	if(routecache == 0)	  return TCL_ERROR;	return TCL_OK;      }      else if (strcasecmp(argv[1], "ip-addr") == 0) {	net_id = ID(atoi(argv[2]), ::IP);	return TCL_OK;      }      else if(strcasecmp(argv[1], "mac-addr") == 0) {	mac_id = ID(atoi(argv[2]), ::MAC);      return TCL_OK;      }    }  return Agent::command(argc, argv);}void DSRProto::noRouteForPacket(Packet *p){}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品对白一区国产伦| 欧美日韩激情在线| 麻豆成人免费电影| 亚洲永久免费av| 亚洲精品日产精品乱码不卡| 国产精品久久久久9999吃药| 欧美激情资源网| 国产精品女同一区二区三区| 中文欧美字幕免费| 最新国产の精品合集bt伙计| 亚洲蜜臀av乱码久久精品| 亚洲同性gay激情无套| 亚洲男同性恋视频| 亚洲国产日韩av| 亚洲成av人综合在线观看| 日韩和的一区二区| 久久国产精品一区二区| 久久99热狠狠色一区二区| 国产一区在线观看视频| 国产成人午夜片在线观看高清观看| 国产精品一区二区在线看| 成人性生交大合| 91国产免费观看| 91麻豆精品国产91久久久资源速度 | 日韩一级片在线播放| 日韩免费看网站| 亚洲国产精品成人久久综合一区| 亚洲色图欧洲色图婷婷| 日韩国产欧美三级| 国产超碰在线一区| 欧美亚洲国产bt| 精品少妇一区二区三区免费观看| 久久久五月婷婷| 一区二区三区高清在线| 青青草国产成人99久久| 成人精品一区二区三区中文字幕| 欧美性色aⅴ视频一区日韩精品| 91精品国产综合久久国产大片 | 狠狠色狠狠色合久久伊人| 成人99免费视频| 日韩一区二区三区在线| 亚洲欧洲日韩一区二区三区| 国产精品一品视频| 99久久免费视频.com| 欧美一区二区视频网站| 中文字幕一区二区三区视频| 日韩国产欧美在线观看| av中文字幕一区| 欧美va亚洲va香蕉在线| 亚洲国产裸拍裸体视频在线观看乱了 | 91蜜桃免费观看视频| 日韩精品中文字幕一区二区三区| 亚洲精品成人少妇| 国产成人在线观看免费网站| 欧美日韩大陆一区二区| 最新久久zyz资源站| 精品中文字幕一区二区| 欧美日韩一区二区在线视频| 中文字幕中文字幕一区| 国产成人在线影院 | 国产91对白在线观看九色| 欧美日韩一级二级| 亚洲激情网站免费观看| 国产成人av影院| 精品久久国产字幕高潮| 日本少妇一区二区| 88在线观看91蜜桃国自产| 一区二区三区资源| 色播五月激情综合网| 中文字幕一区二区三区四区| 国产成人精品亚洲777人妖 | 国产激情视频一区二区在线观看 | 久久综合999| 麻豆久久久久久久| 91精品欧美综合在线观看最新| 亚洲精品乱码久久久久| 97se狠狠狠综合亚洲狠狠| 国产精品久久久久影院色老大| 国产一区二区看久久| 久久综合视频网| 国产精品911| 国产精品久久久爽爽爽麻豆色哟哟 | 激情综合色播五月| 久久青草欧美一区二区三区| 国产在线观看一区二区| 国产亚洲1区2区3区| 国产成人精品www牛牛影视| 国产亚洲精品精华液| 床上的激情91.| 精品在线免费视频| 久久日韩精品一区二区五区| 国产精品996| 成人欧美一区二区三区| 91福利社在线观看| 日韩avvvv在线播放| 欧美不卡视频一区| 成人短视频下载| 亚洲欧美一区二区三区极速播放 | 国内精品视频666| 欧美国产日韩在线观看| 91视频在线看| 性欧美疯狂xxxxbbbb| 精品成人一区二区| 成人午夜视频网站| 午夜私人影院久久久久| 26uuu精品一区二区在线观看| 成人免费高清在线| 五月天视频一区| 久久久久久夜精品精品免费| 一本大道av伊人久久综合| 日韩国产在线观看| 日韩一区在线看| 欧美一区二区三区不卡| 成人黄色一级视频| 日日骚欧美日韩| 国产精品人妖ts系列视频| 8x8x8国产精品| 99久久婷婷国产综合精品| 奇米888四色在线精品| 亚洲欧洲精品一区二区三区不卡 | 精品亚洲成a人| 樱桃国产成人精品视频| 久久久久久免费毛片精品| 欧美少妇性性性| 成人精品鲁一区一区二区| 日本不卡一二三| 舔着乳尖日韩一区| 最新欧美精品一区二区三区| 精品欧美乱码久久久久久| 在线看日韩精品电影| 国产精品一区二区三区网站| 天天影视网天天综合色在线播放| 中文字幕在线不卡一区| 精品日本一线二线三线不卡| 欧美天堂一区二区三区| 99久久99久久综合| 国产精品99久| 久久不见久久见免费视频1| 亚洲国产精品人人做人人爽| 亚洲欧洲三级电影| 日本一区二区视频在线| 337p粉嫩大胆噜噜噜噜噜91av | 精品国产网站在线观看| 日韩欧美一区在线观看| 欧美日韩精品一区视频| 欧美午夜精品久久久久久孕妇| 成年人国产精品| 成人一区二区三区| 国产传媒欧美日韩成人| 国产麻豆日韩欧美久久| 国产一区激情在线| 精品在线亚洲视频| 九色|91porny| 激情六月婷婷久久| 欧美日韩性生活| 在线一区二区三区| 欧美亚洲国产怡红院影院| 欧美在线不卡一区| 欧洲在线/亚洲| 欧美日韩精品综合在线| 欧美老年两性高潮| 欧美一级片在线观看| 51久久夜色精品国产麻豆| 91精品国产乱码| 欧美zozo另类异族| 国产欧美一区二区精品婷婷| 日本一区二区三区视频视频| 中文字幕免费一区| 亚洲另类春色校园小说| 亚洲国产精品久久一线不卡| 亚洲成av人片一区二区| 蜜臀av性久久久久蜜臀aⅴ四虎| 狠狠色丁香婷婷综合| 国产精品中文欧美| 99re热视频精品| 欧美日韩一区二区欧美激情| 欧美一区二区播放| 久久美女艺术照精彩视频福利播放| 国产亚洲午夜高清国产拍精品| 亚洲欧洲另类国产综合| 亚洲第一综合色| 国产在线不卡一卡二卡三卡四卡| 北条麻妃国产九九精品视频| 精品视频一区三区九区| 精品av久久707| 亚洲欧美日韩国产另类专区| 日韩电影一区二区三区四区| 国产伦精一区二区三区| 日本电影亚洲天堂一区| 欧美岛国在线观看| 亚洲视频精选在线| 蜜桃av噜噜一区| 99国产精品久久久久| 日韩色在线观看| 亚洲免费观看高清完整版在线 | 性感美女久久精品| 风流少妇一区二区| 欧美一区二区成人6969| 国产精品美日韩| 久久不见久久见免费视频1|