agent.cc.diffs

来自「it is very important」· DIFFS 代码 · 共 40 行

DIFFS
40
字号
*** agent.cc~	Mon Oct 30 14:02:07 2000--- agent.cc	Tue Oct 24 13:35:45 2000****************** 46,53 ****--- 46,56 ----  #include "flags.h"  #include "address.h"  #include "app.h"+ #include "hdr_nv.h"+ #include "nixnode.h"    +   #ifndef min  #define min(a, b) (((a) < (b)) ? (a) : (b))  #endif****************** 472,477 ****--- 475,494 ----  	hf->no_ts_ = 0;  	hf->pri_ = 0;  	hf->cong_action_ = 0;+  	hdr_nv* nv = hdr_nv::access(p);+  	if(0)printf("Off hdr_nv %d, ip_hdr %d myaddr %ld\n",+  	       hdr_nv::offset(), hdr_ip::offset(), here_.addr_);+  	NixNode* pNixNode = NixNode::GetNodeObject(here_.addr_);+  	if(0)printf("Node Object %p\n", pNixNode);+  	if (pNixNode) { +  		// If we get non-null, indicates nixvector routing in use+  		// Delete any left over nv in the packet+  		// Get a nixvector to the target (may create new)+  		NixVec* pNv = pNixNode->GetNixVector(dst_.addr_);+  		pNv->Reset();+  		nv->nv() = pNv; // And set the nixvec in the packet+  		nv->h_used = 0; // And reset used portion to 0+  	}  }    /*

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?