sr_forwarder.h

来自「在Linux下做的QuadTree的程序」· C头文件 代码 · 共 45 行

H
45
字号
/* -*- c++ -*-      sr_forwarder.h   source route forwarder   $Id: sr_forwarder.h,v 1.1.1.1 2000/08/28 18:40:10 jinyang Exp $   */#ifndef _sr_forwarder_#define _sr_forwarder_#include <object.h>#include <trace.h>#include <cmu/dsr/dsr_proto.h>#include <cmu/dsr/requesttable.h>#include <cmu/dsr/routecache.h>/* a source route forwarding object takes packets and if it has a SRrouting header it forwards the packets into target_ according to theheader.  Otherwise, it gives the packet to the noroute_ object inhopes that it knows what to do with it. */class SRForwarder : public NsObject {public:  SRForwarder();protected:  virtual int command(int argc, const char*const* argv);  virtual void recv(Packet*, Handler* callback = 0);  NsObject* target_;		/* where to send forwarded pkts */  DSRProto* route_agent_;	        /* where to send unforwardable pkts */  RouteCache* routecache_;	/* the routecache */private:  void handlePktWithoutSR(Packet *p);  Trace *tracetarget;  int off_mac_;  int off_ll_;  int off_ip_;  int off_sr_;};#endif _sr_forwarder_

⌨️ 快捷键说明

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