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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? path.h

?? 動態(tài)路由協(xié)議dsr改進算法
?? H
字號:
/* * path.h * Copyright (C) 2000 by the University of Southern California * $Id: path.h,v 1.7 2005/08/25 18:58:05 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++ -*-    path.h   handles source routes   */#ifndef _path_h#define _path_hextern "C" {#include <stdio.h>#include <assert.h>}#include <packet.h>#include "hdr_sr.h"class Path;			// forward declaration// state used for tracing the performance of the cachesenum Link_Type {LT_NONE = 0, LT_TESTED = 1, LT_UNTESTED = 2};enum Log_Status {LS_NONE = 0, LS_UNLOGGED = 1, LS_LOGGED = 2};// some type conversion between exisiting NS code and old DSR simtypedef double Time;enum ID_Type {NONE = NS_AF_NONE, MAC = NS_AF_ILINK, IP = NS_AF_INET };struct ID {  friend class Path;   ID() : type(NONE), t(-1), link_type(LT_NONE), log_stat(LS_NONE) {}  //  ID():addr(0),type(NONE) {}	// remove for speed? -dam 1/23/98  //ID(unsigned long name, ID_Type t):addr(name),type(t), t(-1), link_type(LT_NONE),log_stat(LS_NONE)  //{  //assert(type == NONE || type == MAC || type == IP);  //}  ID(unsigned long name, ID_Type t):addr(name), type(t), t(-1),     link_type(LT_NONE),log_stat(LS_NONE)	{		assert(type == NONE || type == MAC || type == IP);	}  inline ID(const struct sr_addr &a): addr(a.addr),     type((enum ID_Type) a.addr_type), t(-1), link_type(LT_NONE),	  log_stat(LS_NONE)	{		assert(type == NONE || type == MAC || type == IP);	}  inline void fillSRAddr(struct sr_addr& a) {	  a.addr_type = (int) type;	  a.addr = addr;  }      inline nsaddr_t getNSAddr_t() const {	  assert(type == IP); return addr;  }  inline bool operator == (const ID& id2) const {	  return (type == id2.type) && (addr == id2.addr);  }  inline bool operator != (const ID& id2) const {return !operator==(id2);}  inline int size() const {return (type == IP ? 4 : 6);}   void unparse(FILE* out) const;  char* dump() const;  unsigned long addr;  ID_Type type;  Time t;			// when was this ID added to the route  Link_Type link_type;  Log_Status log_stat;};extern ID invalid_addr;extern ID IP_broadcast;class Path {friend void compressPath(Path& path);friend void CopyIntoPath(Path& to, const Path& from, int start, int stop);public:  Path();  Path(int route_len, const ID *route = NULL);  Path(const Path& old);  Path(const struct sr_addr *addrs, int len);  Path(struct hdr_sr *srh);  ~Path();  void fillSR(struct hdr_sr *srh);  inline ID& next() {assert(cur_index < len); return path[cur_index++];}  inline void resetIterator() {  cur_index = 0;}  inline void reset() {len = 0; cur_index = 0;}  inline void setIterator(int i) {assert(i>=0 && i<len); cur_index = i;}  inline void setLength(int l) {assert(l>=0 && l<=MAX_SR_LEN); len = l;}  inline ID& operator[] (int n) const {      assert(n < len && n >= 0);    return path[n];}  void operator=(const Path& rhs);  bool operator==(const Path& rhs);  inline void appendToPath(const ID& id) {     assert(len < MAX_SR_LEN);     path[len++] = id;}  void appendPath(Path& p);  bool member(const ID& id) const;  bool member(const ID& net_id, const ID& MAC_id) const;  Path copy() const;  void copyInto(Path& to) const;  Path reverse() const;  void reverseInPlace();  void removeSection(int from, int to);  // the elements at indices from -> to-1 are removed from the path  inline bool full() const {return (len >= MAX_SR_LEN);}  inline int length() const {return len;}  inline int index() const {return cur_index;}  inline int &index() {return cur_index;}  int size() const; // # of bytes needed to hold path in packet  void unparse(FILE *out) const;  char *dump() const;  inline ID &owner() {return path_owner;}  void checkpath(void) const;private:  int len;  int cur_index;  ID* path;  ID path_owner;};void compressPath(Path& path);// take a path and remove any double backs from it// eg:  A B C B D --> A B Dvoid CopyIntoPath(Path& to, const Path& from, int start, int stop);// sets to[0->(stop-start)] = from[start->stop]#endif // _path_h

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
免费高清成人在线| 精品成a人在线观看| 自拍偷在线精品自拍偷无码专区| 国产老女人精品毛片久久| 久久综合五月天婷婷伊人| 国内精品在线播放| 国产三级欧美三级日产三级99| 国产一区二区福利| 国产精品久久久久影院色老大| 成人av在线影院| 一区二区三区在线免费观看| 在线观看国产91| 丝袜诱惑亚洲看片| 久久天天做天天爱综合色| 粉嫩av一区二区三区| 亚洲乱码国产乱码精品精小说| 欧美影片第一页| 久久www免费人成看片高清| 久久麻豆一区二区| 色视频欧美一区二区三区| 午夜精品一区在线观看| 欧美电影免费观看高清完整版在| 国产精品99久| 一区二区三区精品久久久| 91精品国产综合久久国产大片| 国产精品99久久久久久久女警| 成人欧美一区二区三区| 91精品中文字幕一区二区三区| 国产一区二区精品久久| 亚洲久草在线视频| 337p日本欧洲亚洲大胆色噜噜| 懂色av中文字幕一区二区三区| 亚洲精选免费视频| www国产精品av| 92国产精品观看| 久久99久久99精品免视看婷婷 | 99精品在线免费| 亚洲国产欧美日韩另类综合 | 日本一区二区视频在线观看| 91搞黄在线观看| 国内欧美视频一区二区| 国产麻豆午夜三级精品| 亚洲日本护士毛茸茸| 91精品国产麻豆国产自产在线| 国产v日产∨综合v精品视频| 亚洲国产一区二区三区 | 色综合咪咪久久| 麻豆精品视频在线观看视频| 亚洲欧美视频在线观看视频| 精品国产不卡一区二区三区| 欧美探花视频资源| 波多野结衣的一区二区三区| 激情综合色丁香一区二区| 亚洲一区二区av电影| 中文一区二区完整视频在线观看| 日韩亚洲欧美在线| 在线观看免费成人| 91亚洲国产成人精品一区二三| 国产真实乱偷精品视频免| 午夜一区二区三区在线观看| 亚洲欧美日韩人成在线播放| 国产欧美一区二区精品仙草咪| 日韩欧美国产午夜精品| 91精品久久久久久久91蜜桃| 色综合视频一区二区三区高清| 国产激情一区二区三区四区| 美女国产一区二区三区| 日韩av中文字幕一区二区三区| 一区二区三区四区av| 国产精品成人免费精品自在线观看 | 久久精品夜色噜噜亚洲a∨| 欧美一区欧美二区| 欧美丰满高潮xxxx喷水动漫| 欧美丝袜丝nylons| 日本韩国欧美在线| 色婷婷国产精品综合在线观看| 成人av网站免费| 成人三级在线视频| 成人精品视频一区二区三区| 国产成人在线视频网站| 成人精品视频网站| 9人人澡人人爽人人精品| 成人av在线一区二区| 91小视频免费观看| 在线精品视频免费观看| 在线观看国产日韩| 欧美喷潮久久久xxxxx| 欧美日韩精品专区| 日韩欧美一级片| 26uuu亚洲| 国产精品麻豆视频| 亚洲欧美日韩一区二区三区在线观看| 亚洲日本在线a| 亚洲线精品一区二区三区| 亚洲成av人影院| 精品中文字幕一区二区| 国产成人欧美日韩在线电影| www.一区二区| 欧美最新大片在线看| 337p亚洲精品色噜噜狠狠| 欧美成人一区二区三区在线观看| 久久综合丝袜日本网| 国产精品福利在线播放| 亚洲精品久久久蜜桃| 五月天激情小说综合| 日韩在线观看一区二区| 国产精品综合二区| 99久久国产综合精品麻豆| 91精品久久久久久蜜臀| 日韩欧美久久一区| 久久午夜电影网| 亚洲三级免费电影| 日韩av在线免费观看不卡| 国产成人夜色高潮福利影视| 一本色道久久综合亚洲91| 777欧美精品| 国产亚洲短视频| 亚洲国产视频网站| 久久99精品一区二区三区| av资源站一区| 欧美一区二区三区小说| 国产精品麻豆欧美日韩ww| 石原莉奈在线亚洲二区| 国产成人8x视频一区二区| 欧美在线一二三| 久久九九久久九九| 亚洲福中文字幕伊人影院| 国产乱子轮精品视频| 在线观看一区二区精品视频| 久久先锋影音av鲁色资源网| 一级日本不卡的影视| 国产一区二区美女| 欧美三级乱人伦电影| 国产亚洲欧洲997久久综合| 亚洲国产人成综合网站| 国产成人a级片| 欧美精品123区| 亚洲激情六月丁香| 黄色日韩网站视频| 欧美美女bb生活片| 亚洲欧洲一区二区在线播放| 美日韩一区二区| 日本精品一级二级| 中文字幕av一区 二区| 美日韩一区二区三区| 在线视频你懂得一区二区三区| 久久亚洲综合色一区二区三区| 亚洲综合一区二区三区| 成人综合婷婷国产精品久久蜜臀 | 亚洲精品高清视频在线观看| 国产在线看一区| 7878成人国产在线观看| 亚洲欧美另类久久久精品| 国产成人免费视频一区| 欧美大白屁股肥臀xxxxxx| 亚洲精品视频自拍| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 日本vs亚洲vs韩国一区三区 | 欧美电影免费观看高清完整版在| 一区二区三区日本| www.久久久久久久久| 久久久久久麻豆| 精油按摩中文字幕久久| 欧美一区二区美女| 五月激情六月综合| 欧洲精品视频在线观看| 亚洲欧美日韩国产综合在线| 成人视屏免费看| 中文字幕av一区二区三区高 | 国产福利视频一区二区三区| 欧美v日韩v国产v| 久久99精品一区二区三区三区| 欧美一区二区在线观看| 日韩成人免费电影| 3d动漫精品啪啪| 日本大胆欧美人术艺术动态| 91精品国产aⅴ一区二区| 午夜不卡在线视频| 这里只有精品免费| 免费一级片91| 精品国产乱码久久久久久久久| 狠狠狠色丁香婷婷综合激情| 日韩免费高清视频| 精品一区二区三区免费观看| 精品久久久久一区二区国产| 狠狠v欧美v日韩v亚洲ⅴ| 久久久久久久久蜜桃| 成人在线综合网| 国产精品国产三级国产三级人妇 | 99视频超级精品| 亚洲欧美电影院| 欧美色图在线观看| 日本欧美一区二区三区乱码| 精品久久久久久久一区二区蜜臀| 国产精品一卡二卡在线观看| 国产精品美女久久久久aⅴ国产馆| av中文字幕亚洲| 亚洲电影第三页| 欧美精品一区二区三区视频| 国产精品一区二区在线播放|